]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/log
thirdparty/sqlalchemy/sqlalchemy.git
10 years agoadd more order by here
Mike Bayer [Sat, 11 Oct 2014 23:02:32 +0000 (19:02 -0400)] 
add more order by here

10 years ago- embedding an existing predicate into a new one only
Mike Bayer [Sat, 11 Oct 2014 22:35:12 +0000 (18:35 -0400)] 
- embedding an existing predicate into a new one only
seems to be used by test_oracle->test_coerce_to_unicode().  The
predicate here should treat as a lambda based on enabled_for_config.
not sure why this test is not failing on jenkins

10 years ago- Fixed long-standing bug in Oracle dialect where bound parameter
Mike Bayer [Sat, 11 Oct 2014 22:25:21 +0000 (18:25 -0400)] 
- Fixed long-standing bug in Oracle dialect where bound parameter
names that started with numbers would not be quoted, as Oracle
doesn't like numerics in bound parameter names.
fixes #2138

10 years ago- change this literal so that the bound name doesn't have a numeric
Mike Bayer [Sat, 11 Oct 2014 21:33:44 +0000 (17:33 -0400)] 
- change this literal so that the bound name doesn't have a numeric
name, this is sort of a bug for oracle

10 years ago- :meth:`.Insert.from_select` now includes Python and SQL-expression
Mike Bayer [Fri, 10 Oct 2014 21:15:19 +0000 (17:15 -0400)] 
- :meth:`.Insert.from_select` now includes Python and SQL-expression
defaults if otherwise unspecified; the limitation where non-
server column defaults aren't included in an INSERT FROM
SELECT is now lifted and these expressions are rendered as
constants into the SELECT statement.

10 years ago- apply patches to correct for + sign in with_hint() docs,
Mike Bayer [Fri, 10 Oct 2014 19:31:07 +0000 (15:31 -0400)] 
- apply patches to correct for + sign in with_hint() docs,
fixes #3036

10 years ago- add a migration note for ref #3222
Mike Bayer [Fri, 10 Oct 2014 00:54:19 +0000 (20:54 -0400)] 
- add a migration note for ref #3222

10 years ago- The ON clause rendered when using :meth:`.Query.join`,
Mike Bayer [Fri, 10 Oct 2014 00:40:35 +0000 (20:40 -0400)] 
- The ON clause rendered when using :meth:`.Query.join`,
:meth:`.Query.outerjoin`, or the standalone :func:`.orm.join` /
:func:`.orm.outerjoin` functions to a single-inheritance subclass will
now include the "single table criteria" in the ON clause even
if the ON clause is otherwise hand-rolled; it is now added to the
criteria using AND, the same way as if joining to a single-table
target using relationship or similar.
fixes #3222

10 years ago- Fixed bug where a fair number of SQL elements within
Mike Bayer [Thu, 9 Oct 2014 21:20:30 +0000 (17:20 -0400)] 
- Fixed bug where a fair number of SQL elements within
the sql package would fail to ``__repr__()`` successfully,
due to a missing ``description`` attribute that would then invoke
a recursion overflow when an internal AttributeError would then
re-invoke ``__repr__()``.
fixes #3195

10 years ago- clean up unicode docs and clarify that client_encoding
Mike Bayer [Tue, 7 Oct 2014 18:06:46 +0000 (14:06 -0400)] 
- clean up unicode docs and clarify that client_encoding
at the engine level is not the same thing as at the connect args
level.

10 years ago- adjustment for ref #3200 as we need an immutabledict() here so
Mike Bayer [Tue, 7 Oct 2014 16:43:27 +0000 (12:43 -0400)] 
- adjustment for ref #3200 as we need an immutabledict() here so
that union() can be called, in the case of a dialect that uses
execution options inside of initialize() (e.g. oursql)

10 years ago- Fixed "'NoneType' object has no attribute 'concrete'" error
Mike Bayer [Mon, 6 Oct 2014 22:33:05 +0000 (18:33 -0400)] 
- Fixed "'NoneType' object has no attribute 'concrete'" error
when using :class:`.AbstractConcreteBase` in conjunction with
a subclass that declares ``__abstract__``.
fixes #3185

10 years ago- The execution options passed to an :class:`.Engine` either via
Mike Bayer [Mon, 6 Oct 2014 22:23:42 +0000 (18:23 -0400)] 
- The execution options passed to an :class:`.Engine` either via
:paramref:`.create_engine.execution_options` or
:meth:`.Engine.update_execution_options` are not passed to the
special :class:`.Connection` used to initialize the dialect
within the "first connect" event; dialects will usually
perform their own queries in this phase, and none of the
current available  options should be applied here.  In
particular, the "autocommit" option was causing an attempt to
autocommit within this initial connect which would fail with
an AttributeError due to the non-standard state of the
:class:`.Connection`.
fixes #3200

10 years ago- move some things that are features to the features
Mike Bayer [Sat, 4 Oct 2014 23:10:23 +0000 (19:10 -0400)] 
- move some things that are features to the features

10 years ago- use provide_metadata for new unique constraint / index tests
Mike Bayer [Sat, 4 Oct 2014 22:57:01 +0000 (18:57 -0400)] 
- use provide_metadata for new unique constraint / index tests
- add a test for PG reflection of unique index without any unique
constraint
- for PG, don't include 'duplicates_constraint' in the entry
if the index does not actually mirror a constraint
- use a distinct method for unique constraint reflection within table
- catch unique constraint not implemented condition; this may
be within some dialects and also is expected to be supported by
Alembic tests
- migration + changelogs for #3184
- add individual doc notes as well to MySQL, Postgreql
fixes #3184

10 years agoMerge branch 'reflect-unique-constraints' of https://bitbucket.org/jerdfelt/sqlalchem...
Mike Bayer [Sat, 4 Oct 2014 21:47:53 +0000 (17:47 -0400)] 
Merge branch 'reflect-unique-constraints' of https://bitbucket.org/jerdfelt/sqlalchemy into pr30

10 years ago- changelog, migration for pr github:134
Mike Bayer [Sat, 4 Oct 2014 16:18:20 +0000 (12:18 -0400)] 
- changelog, migration for pr github:134

10 years agoMerge remote-tracking branch 'origin/pr/134' into pr134
Mike Bayer [Sat, 4 Oct 2014 15:51:52 +0000 (11:51 -0400)] 
Merge remote-tracking branch 'origin/pr/134' into pr134

10 years ago- rework tests for attached databases into individual tests,
Mike Bayer [Mon, 29 Sep 2014 22:09:25 +0000 (18:09 -0400)] 
- rework tests for attached databases into individual tests,
test both memory and file-based
- When selecting from a UNION using an attached database file,
the pysqlite driver reports column names in cursor.description
as 'dbname.tablename.colname', instead of 'tablename.colname' as
it normally does for a UNION (note that it's supposed to just be
'colname' for both, but we work around it).  The column translation
logic here has been adjusted to retrieve the rightmost token, rather
than the second token, so it works in both cases.   Workaround
courtesy Tony Roberts.
fixes #3211

10 years ago- A revisit to this issue first patched in 0.9.5, apparently
Mike Bayer [Mon, 29 Sep 2014 21:33:53 +0000 (17:33 -0400)] 
- A revisit to this issue first patched in 0.9.5, apparently
psycopg2's ``.closed`` accessor is not as reliable as we assumed,
so we have added an explicit check for the exception messages
"SSL SYSCALL error: Bad file descriptor" and
"SSL SYSCALL error: EOF detected" when detecting an
is-disconnect scenario.   We will continue to consult psycopg2's
connection.closed as a first check.
fixes #3021

10 years ago- cyclomatic complexity; break up visit_select, goes from F to D
Mike Bayer [Sat, 27 Sep 2014 22:13:50 +0000 (18:13 -0400)] 
- cyclomatic complexity; break up visit_select, goes from F to D

10 years ago- cyclomatic complexity: _get_colparams() becomes sql.crud._get_crud_params,
Mike Bayer [Sat, 27 Sep 2014 21:59:05 +0000 (17:59 -0400)] 
- cyclomatic complexity: _get_colparams() becomes sql.crud._get_crud_params,
CC goes from F to D

10 years ago- cyclomatic complexity: _join_condition goes from E to a B
Mike Bayer [Sat, 27 Sep 2014 20:46:23 +0000 (16:46 -0400)] 
- cyclomatic complexity: _join_condition goes from E to a B

10 years ago- cyclomatic complexity: instrument_class goes from E to an A
Mike Bayer [Sat, 27 Sep 2014 20:35:32 +0000 (16:35 -0400)] 
- cyclomatic complexity: instrument_class goes from E to an A

10 years ago- cyclomatic complexity; break up reflecttable(), goes from E to B
Mike Bayer [Sat, 27 Sep 2014 20:12:04 +0000 (16:12 -0400)] 
- cyclomatic complexity; break up reflecttable(), goes from E to B

10 years ago- repair autorollback for branches
Mike Bayer [Sat, 27 Sep 2014 01:41:15 +0000 (21:41 -0400)] 
- repair autorollback for branches

10 years ago- Fixed bug where a "branched" connection, that is the kind you get
Mike Bayer [Fri, 26 Sep 2014 20:25:26 +0000 (16:25 -0400)] 
- Fixed bug where a "branched" connection, that is the kind you get
when you call :meth:`.Connection.connect`, would not share transaction
status with the parent.  The architecture of branching has been tweaked
a bit so that the branched connection defers to the parent for
all transactional status and operations.
fixes #3190

10 years ago- Fixed bug where a "branched" connection, that is the kind you get
Mike Bayer [Fri, 26 Sep 2014 18:55:36 +0000 (14:55 -0400)] 
- Fixed bug where a "branched" connection, that is the kind you get
when you call :meth:`.Connection.connect`, would not share invalidation
status with the parent.  The architecture of branching has been tweaked
a bit so that the branched connection defers to the parent for
all invalidation status and operations.
fixes #3215

10 years ago- add explicit warning re: polymorphic_on, cascading is not supported
Mike Bayer [Fri, 26 Sep 2014 16:50:18 +0000 (12:50 -0400)] 
- add explicit warning re: polymorphic_on, cascading is not supported
at this time.  ref #3214

10 years agocomments
Mike Bayer [Fri, 26 Sep 2014 14:59:39 +0000 (10:59 -0400)] 
comments

10 years ago- "column already assigned" message has been updated in 7f82c55f
Mike Bayer [Fri, 26 Sep 2014 01:16:13 +0000 (21:16 -0400)] 
- "column already assigned" message has been updated in 7f82c55f

10 years ago- refactor of declarative, break up into indiviudal methods
Mike Bayer [Fri, 26 Sep 2014 01:08:17 +0000 (21:08 -0400)] 
- refactor of declarative, break up into indiviudal methods
that are now affixed to _MapperConfig
- declarative now creates column copies ahead of time
so that they are ready to go for a declared_attr
- overhaul of declared_attr; memoization, cascading modifier
- A relationship set up with :class:`.declared_attr` on
a :class:`.AbstractConcreteBase` base class will now be configured
on the abstract base mapping automatically, in addition to being
set up on descendant concrete classes as usual.
fixes #2670
- The :class:`.declared_attr` construct has newly improved
behaviors and features in conjunction with declarative.  The
decorated function will now have access to the final column
copies present on the local mixin when invoked, and will also
be invoked exactly once for each mapped class, the returned result
being memoized.   A new modifier :attr:`.declared_attr.cascading`
is added as well. fixes #3150
- the original plan for #3150 has been scaled back; by copying
mixin columns up front and memoizing, we don't actually need
the "map properties later" thing.
- full docs + migration notes

10 years ago- convert to spaces
Mike Bayer [Fri, 26 Sep 2014 01:07:15 +0000 (21:07 -0400)] 
- convert to spaces

10 years ago- clarify documentation on exists() that it is preferred to be in the
Mike Bayer [Wed, 24 Sep 2014 18:49:30 +0000 (14:49 -0400)] 
- clarify documentation on exists() that it is preferred to be in the
WHERE clause.  fixes #3212

10 years ago- flake8 all of test/ext/declarative
Mike Bayer [Tue, 23 Sep 2014 17:25:22 +0000 (13:25 -0400)] 
- flake8 all of test/ext/declarative

10 years ago- The :mod:`sqlalchemy.ext.automap` extension will now set
Mike Bayer [Tue, 23 Sep 2014 03:00:45 +0000 (23:00 -0400)] 
- The :mod:`sqlalchemy.ext.automap` extension will now set
``cascade="all, delete-orphan"`` automatically on a one-to-many
relationship/backref where the foreign key is detected as containing
one or more non-nullable columns.  This argument is present in the
keywords passed to :func:`.automap.generate_relationship` in this
case and can still be overridden.  Additionally, if the
:class:`.ForeignKeyConstraint` specifies ``ondelete="CASCADE"``
for a non-nullable or ``ondelete="SET NULL"`` for a nullable set
of columns, the argument ``passive_deletes=True`` is also added to the
relationship.  Note that not all backends support reflection of
ondelete, but backends that do include Postgresql and MySQL.
fixes #3210

10 years agopep8/flake8
Mike Bayer [Tue, 23 Sep 2014 02:22:09 +0000 (22:22 -0400)] 
pep8/flake8

10 years ago- these tests don't test anything in SQLAlchemy - from our perpsective,
Mike Bayer [Fri, 19 Sep 2014 16:39:34 +0000 (12:39 -0400)] 
- these tests don't test anything in SQLAlchemy - from our perpsective,
we need to be in transactions (tested elsewhere) and we need to
emit the correct FOR UPDATE strings (tested elsewhere).  There's nothing
in SQLA to be tested as far as validating that for update causes exceptions
or not, and these tests frequently fail as they are timing sensitive.

10 years ago- Fixed bug that affected generally the same classes of event
Mike Bayer [Thu, 18 Sep 2014 21:49:07 +0000 (17:49 -0400)] 
- Fixed bug that affected generally the same classes of event
as that of :ticket:`3199`, when the ``named=True`` parameter
would be used.  Some events would fail to register, and others
would not invoke the event arguments correctly, generally in the
case of when an event was "wrapped" for adaption in some other way.
The "named" mechanics have been rearranged to not interfere with
the argument signature expected by internal wrapper functions.
fixes #3197

10 years agofix test
Mike Bayer [Thu, 18 Sep 2014 20:28:54 +0000 (16:28 -0400)] 
fix test

10 years ago- Fixed an unlikely race condition observed in some exotic end-user
Mike Bayer [Thu, 18 Sep 2014 19:42:27 +0000 (15:42 -0400)] 
- Fixed an unlikely race condition observed in some exotic end-user
setups, where the attempt to check for "duplicate class name" in
declarative would hit upon a not-totally-cleaned-up weak reference
related to some other class being removed; the check here now ensures
the weakref still references an object before calling upon it further.
fixes #3208

10 years ago- Fixed bug that affected many classes of event, particularly
Mike Bayer [Thu, 18 Sep 2014 19:24:40 +0000 (15:24 -0400)] 
- Fixed bug that affected many classes of event, particularly
ORM events but also engine events, where the usual logic of
"de duplicating" a redundant call to :func:`.event.listen`
with the same arguments would fail, for those events where the
listener function is wrapped.  An assertion would be hit within
registry.py.  This assertion has now been integrated into the
deduplication check, with the added bonus of a simpler means
of checking deduplication across the board.
fixes #3199

10 years ago- Added new method :meth:`.Select.with_statement_hint` and ORM
Mike Bayer [Thu, 18 Sep 2014 15:44:48 +0000 (11:44 -0400)] 
- Added new method :meth:`.Select.with_statement_hint` and ORM
method :meth:`.Query.with_statement_hint` to support statement-level
hints that are not specific to a table.
fixes #3206

10 years ago- Added support for the Oracle table option ON COMMIT. This is being
Mike Bayer [Wed, 17 Sep 2014 23:43:45 +0000 (19:43 -0400)] 
- Added support for the Oracle table option ON COMMIT.  This is being
kept separate from Postgresql's ON COMMIT for now even though ON COMMIT
is in the SQL standard; the option is still very specific to temp tables
and we eventually would provide a more first class temporary table
feature.
- oracle can apparently do get_temp_table_names() too, so implement that,
fix its get_table_names(), and add it to #3204.  fixes #3204 again.

10 years agoReflect unique constraints when reflecting a Table object
Johannes Erdfelt [Wed, 10 Sep 2014 14:37:59 +0000 (07:37 -0700)] 
Reflect unique constraints when reflecting a Table object

Calls to reflect a table did not create any UniqueConstraint objects.
The reflection core made no calls to get_unique_constraints and as
a result, the sqlite dialect would never reflect any unique constraints.

MySQL transparently converts unique constraints into unique indexes, but
SQLAlchemy would reflect those as an Index object and as a
UniqueConstraint. The reflection core will now deduplicate the unique
constraints.

PostgreSQL would reflect unique constraints as an Index object and as
a UniqueConstraint object. The reflection core will now deduplicate
the unique indexes.

10 years ago- not sure what this is testing but remove the self.l that might
Mike Bayer [Wed, 17 Sep 2014 19:40:09 +0000 (15:40 -0400)] 
- not sure what this is testing but remove the self.l that might
be contributing to pypy not cleaning up on this one

10 years ago- we can start checking these flake rules
Mike Bayer [Wed, 17 Sep 2014 19:39:47 +0000 (15:39 -0400)] 
- we can start checking these flake rules

10 years ago- changelog for #3203; fixes #3203
Mike Bayer [Wed, 17 Sep 2014 19:19:19 +0000 (15:19 -0400)] 
- changelog for #3203; fixes #3203

10 years agoMerge branch 'sqlite-temp-table-reflection' of https://bitbucket.org/jerdfelt/sqlalch...
Mike Bayer [Wed, 17 Sep 2014 19:16:33 +0000 (15:16 -0400)] 
Merge branch 'sqlite-temp-table-reflection' of https://bitbucket.org/jerdfelt/sqlalchemy/branch/sqlite-temp-table-reflection into pr31

10 years ago- Added :meth:`.Inspector.get_temp_table_names` and
Mike Bayer [Wed, 17 Sep 2014 19:15:21 +0000 (15:15 -0400)] 
- Added :meth:`.Inspector.get_temp_table_names` and
:meth:`.Inspector.get_temp_view_names`; currently, only the
SQLite dialect supports these methods.    The return of temporary
table and view names has been **removed** from SQLite's version
of :meth:`.Inspector.get_table_names` and
:meth:`.Inspector.get_view_names`; other database backends cannot
support this information (such as MySQL), and the scope of operation
is different in that the tables can be local to a session and
typically aren't supported in remote schemas.
fixes #3204

10 years ago- move this to the correct location
Mike Bayer [Wed, 17 Sep 2014 18:02:34 +0000 (14:02 -0400)] 
- move this to the correct location

10 years ago- comment this out (again)
Mike Bayer [Wed, 17 Sep 2014 17:12:41 +0000 (13:12 -0400)] 
- comment this out (again)

10 years agoMerge branch 'pr128'
Mike Bayer [Wed, 17 Sep 2014 17:11:49 +0000 (13:11 -0400)] 
Merge branch 'pr128'

10 years ago- repair get_foreign_table_names() for PGInsp/dialect level
Mike Bayer [Wed, 17 Sep 2014 17:11:22 +0000 (13:11 -0400)] 
- repair get_foreign_table_names() for PGInsp/dialect level
- repair get_view_names()
- changelog + migration note

10 years agokeep this off for the moment as jenkins isn't set up for this yet
Mike Bayer [Wed, 17 Sep 2014 16:41:55 +0000 (12:41 -0400)] 
keep this off for the moment as jenkins isn't set up for this yet

10 years ago- the actual round trip requires password authent set up for the user;
Mike Bayer [Wed, 17 Sep 2014 16:41:08 +0000 (12:41 -0400)] 
- the actual round trip requires password authent set up for the user;
we don't actually need a round trip test here as we're only testing reflection.

10 years agoHandle sqlite get_unique_constraints() call for temporary tables
Johannes Erdfelt [Wed, 17 Sep 2014 14:52:34 +0000 (07:52 -0700)] 
Handle sqlite get_unique_constraints() call for temporary tables

The sqlite get_unique_constraints() implementation did not do a union
against the sqlite_temp_master table like other code does. This could
result in an exception being raised if get_unique_constraints() was
called against a temporary table.

10 years ago- Fixed the version string detection in the pymssql dialect to
Mike Bayer [Tue, 16 Sep 2014 21:40:06 +0000 (17:40 -0400)] 
- Fixed the version string detection in the pymssql dialect to
work with Microsoft SQL Azure, which changes the word "SQL Server"
to "SQL Azure".
fixes #3151

10 years ago- break out and fix tests for materialized view and foreign tables. foreign tables...
Mike Bayer [Tue, 16 Sep 2014 21:24:34 +0000 (17:24 -0400)] 
- break out and fix tests for materialized view and foreign tables.  foreign tables not working

10 years agoMerge remote-tracking branch 'origin/pr/128' into pr128
Mike Bayer [Tue, 16 Sep 2014 20:55:05 +0000 (16:55 -0400)] 
Merge remote-tracking branch 'origin/pr/128' into pr128

10 years ago- raise from cause here to preserve stack trace
Mike Bayer [Tue, 16 Sep 2014 20:20:22 +0000 (16:20 -0400)] 
- raise from cause here to preserve stack trace

10 years agoMerge pull request #138 from BY-jk/master
mike bayer [Tue, 16 Sep 2014 19:10:36 +0000 (15:10 -0400)] 
Merge pull request #138 from BY-jk/master

Added EXASolution dialect to documentation

10 years agoAdded EXASolution dialect to documentation
Jan [Tue, 16 Sep 2014 18:54:27 +0000 (20:54 +0200)] 
Added EXASolution dialect to documentation

10 years ago- cant do xargs in tox.ini as it doesnt run outside of postgresql/mysql
Mike Bayer [Mon, 15 Sep 2014 19:29:54 +0000 (15:29 -0400)] 
- cant do xargs in tox.ini as it doesnt run outside of postgresql/mysql

10 years ago- use compat.u for python3.2, fixes #3198
Mike Bayer [Mon, 15 Sep 2014 18:57:41 +0000 (14:57 -0400)] 
- use compat.u for python3.2, fixes #3198

10 years ago- fix issue where nose Failure object comes into play here
Mike Bayer [Mon, 15 Sep 2014 18:53:20 +0000 (14:53 -0400)] 
- fix issue where nose Failure object comes into play here

10 years ago- remove some crufty old testing options
Mike Bayer [Mon, 15 Sep 2014 01:41:13 +0000 (21:41 -0400)] 
- remove some crufty old testing options
- reestablish the "bootstrap" system of loading the test runners
in testing/plugin; using the updated approach we just came up with for
alembic.  Coverage should be fixed now when running either py.test or
nose. fixes #3196
- upgrade tox.ini and start using a .coveragerc file

10 years agoUpdated documenation for engines.rst
Jim Hokanson [Sun, 14 Sep 2014 04:25:41 +0000 (00:25 -0400)] 
Updated documenation for engines.rst

Clarified connecting to absolute path for sqlite using Windows.

10 years ago- Fixed warning that would emit when a complex self-referential
Mike Bayer [Thu, 11 Sep 2014 15:51:44 +0000 (11:51 -0400)] 
- Fixed warning that would emit when a complex self-referential
primaryjoin contained functions, while at the same time remote_side
was specified; the warning would suggest setting "remote side".
It now only emits if remote_side isn't present.
fixes #3194

10 years agomethod documentation typo fix
Ilja Everilä [Thu, 11 Sep 2014 12:49:51 +0000 (15:49 +0300)] 
method documentation typo fix

10 years agodocumentation indentation fix
Ilja Everilä [Thu, 11 Sep 2014 12:47:24 +0000 (15:47 +0300)] 
documentation indentation fix

10 years agoallow windowing filtered functions
Ilja Everilä [Thu, 11 Sep 2014 12:39:56 +0000 (15:39 +0300)] 
allow windowing filtered functions

10 years agorenamed aggregatefilter to funcfilter, since it is that
Ilja Everilä [Thu, 11 Sep 2014 12:29:33 +0000 (15:29 +0300)] 
renamed aggregatefilter to funcfilter, since it is that

10 years ago- Fixed bug in ordering list where the order of items would be
Mike Bayer [Wed, 10 Sep 2014 18:14:50 +0000 (14:14 -0400)] 
- Fixed bug in ordering list where the order of items would be
thrown off during a collection replace event, if the
reorder_on_append flag were set to True.  The fix ensures that the
ordering list only impacts the list that is explicitly associated
with the object.
fixes #3191

10 years agoadd ClauseTest for aggregatefilter
Ilja Everilä [Wed, 10 Sep 2014 09:07:38 +0000 (12:07 +0300)] 
add ClauseTest for aggregatefilter

10 years agoimplementation for <aggregate_fun> FILTER (WHERE ...)
Ilja Everilä [Wed, 10 Sep 2014 08:34:33 +0000 (11:34 +0300)] 
implementation for <aggregate_fun> FILTER (WHERE ...)

10 years agotests for <aggregate_fun> FILTER (WHERE ...)
Ilja Everilä [Wed, 10 Sep 2014 08:33:49 +0000 (11:33 +0300)] 
tests for <aggregate_fun> FILTER (WHERE ...)

10 years ago- for whatever reason, Insert.values() with multi values wasn't
Mike Bayer [Tue, 9 Sep 2014 22:59:59 +0000 (18:59 -0400)] 
- for whatever reason, Insert.values() with multi values wasn't
in the 0.8 migration, so let's just add that

10 years ago- add in all the method-chained methods to the parameter descriptions
Mike Bayer [Tue, 9 Sep 2014 21:29:37 +0000 (17:29 -0400)] 
- add in all the method-chained methods to the parameter descriptions
on select().  improve some descriptions and add more info for limit()/
offset(), including new 1.0 functionality.

10 years ago- rework the previous "order by" system in terms of the new one,
Mike Bayer [Mon, 8 Sep 2014 20:31:11 +0000 (16:31 -0400)] 
- rework the previous "order by" system in terms of the new one,
unify everything.
- create a new layer of separation between the "from order bys" and "column order bys",
so that an OVER doesn't ORDER BY a label in the same columns clause
- identify another issue with polymorphic for ref #3148, match on label
keys rather than the objects

10 years ago- check for None linker...
Mike Bayer [Mon, 8 Sep 2014 17:01:43 +0000 (13:01 -0400)] 
- check for None linker...

10 years ago- Added new event handlers :meth:`.AttributeEvents.init_collection`
Mike Bayer [Mon, 8 Sep 2014 00:28:19 +0000 (20:28 -0400)] 
- Added new event handlers :meth:`.AttributeEvents.init_collection`
and :meth:`.AttributeEvents.dispose_collection`, which track when
a collection is first associated with an instance and when it is
replaced.  These handlers supersede the :meth:`.collection.linker`
annotation. The old hook remains supported through an event adapter.

10 years ago- remove some old cruft
Mike Bayer [Sun, 7 Sep 2014 23:17:46 +0000 (19:17 -0400)] 
- remove some old cruft
- prop.compare() isn't needed; replace with prop._with_parent()
for relationships
- update docs in orm/interfaces

10 years ago- mako_layout isn't used, remove it
Mike Bayer [Sun, 7 Sep 2014 22:10:40 +0000 (18:10 -0400)] 
- mako_layout isn't used, remove it
- to check for epub look at "builder"

10 years agoMerge pull request #133 from hiaselhans/doc_epub
mike bayer [Sun, 7 Sep 2014 21:38:05 +0000 (17:38 -0400)] 
Merge pull request #133 from hiaselhans/doc_epub

Docs: use layout.mako only when mako_layout=='html'

10 years agoDocs: use the base layout when mako_layout=='epub'
hiaselhans [Sat, 6 Sep 2014 11:32:58 +0000 (13:32 +0200)] 
Docs: use the base layout when mako_layout=='epub'

  - https://readthedocs.org/projects/sqlalchemy/downloads/epub/latest/ renders with the full template which is unreadable on e-readers
  - in the makefile the template-variable mako_layout is set for target: epub which makes mako use only the base layout.
  - this is the more elegant solution as proposed to #133

10 years ago- changelog and migration for #3188, #3148.
Mike Bayer [Sun, 7 Sep 2014 19:23:24 +0000 (15:23 -0400)] 
- changelog and migration for #3188, #3148.
fixes #3188
fixes #3148

10 years ago- rework ColumnAdapter and ORMAdapter to only provide the features
Mike Bayer [Sun, 7 Sep 2014 18:55:44 +0000 (14:55 -0400)] 
- rework ColumnAdapter and ORMAdapter to only provide the features
we're now using; rework them fully so that their behavioral contract
is consistent regarding adapter.traverse() vs. adapter.columns[],
add a full suite of tests including advanced wrapping scenarios
previously only covered by test/orm/test_froms.py and
test/orm/inheritance/test_relationships.py
- identify several cases where label._order_by_label_clause would be
corrupted, e.g. due to adaption or annotation separately
- add full tests for #3148

10 years ago- enhance ClauseAdapter / ColumnAdapter to have new behaviors with labels.
Mike Bayer [Sun, 7 Sep 2014 04:01:34 +0000 (00:01 -0400)] 
- enhance ClauseAdapter / ColumnAdapter to have new behaviors with labels.
The "anonymize label" logic is now generalized to ClauseAdapter, and takes
place when the anonymize_labels flag is sent, taking effect for all
.columns lookups as well as within traverse() calls against the label
directly.
- traverse() will also memoize what it gets in columns, so that
calling upon traverse() / .columns against the same Label will
produce the same anonymized label.  This is so that AliasedClass
produces the same anonymized label when it is accessed per-column
(e.g. SomeAlias.some_column) as well as when it is applied to a Query,
and within column loader strategies (e.g. query(SomeAlias)); the
former uses traverse() while the latter uses .columns
- AliasedClass now calls onto ColumnAdapter
- Query also makes sure to use that same ColumnAdapter from the AliasedClass
in all cases
- update the logic from 0.9 in #1068 to make use of the same
_label_resolve_dict we use for #2992, simplifying how that works
and adding support for new scenarios that were pretty broken
(see #3148, #3188)

10 years agowip for #3148
Mike Bayer [Sat, 6 Sep 2014 21:56:53 +0000 (17:56 -0400)] 
wip for #3148

10 years ago- document all the varities of _label on the base ColumnElement
Mike Bayer [Sat, 6 Sep 2014 20:20:01 +0000 (16:20 -0400)] 
- document all the varities of _label on the base ColumnElement
- replace out _columns_clause_label with a straight boolean flag to
reduce the proliferation of labels

10 years ago- omit MySQL index flavor if its None
Mike Bayer [Fri, 5 Sep 2014 21:02:33 +0000 (17:02 -0400)] 
- omit MySQL index flavor if its None

10 years ago- MySQL boolean symbols "true", "false" work again. 0.9's change
Mike Bayer [Fri, 5 Sep 2014 20:44:42 +0000 (16:44 -0400)] 
- MySQL boolean symbols "true", "false" work again.  0.9's change
in :ticket:`2682` disallowed the MySQL dialect from making use of the
"true" and "false" symbols in the context of "IS" / "IS NOT", but
MySQL supports this syntax even though it has no boolean type.
MySQL remains "non native boolean", but the :func:`.true`
and :func:`.false` symbols again produce the
keywords "true" and "false", so that an expression like
``column.is_(true())`` again works on MySQL.
fixes #3186

10 years ago- delete the file first here so this is deterministic
Mike Bayer [Fri, 5 Sep 2014 20:07:10 +0000 (16:07 -0400)] 
- delete the file first here so this is deterministic

10 years ago- tiny refactors #1-#5
Mike Bayer [Fri, 5 Sep 2014 18:50:21 +0000 (14:50 -0400)] 
- tiny refactors #1-#5

10 years agoAdded documentation. Changed my mind - added get_foreign_table_names() only to PGInsp...
Rodrigo Menezes [Fri, 5 Sep 2014 17:54:48 +0000 (13:54 -0400)] 
Added documentation. Changed my mind - added get_foreign_table_names() only to PGInspect and not in the Dialect. Added tests for PGInspect and removed a bunch of the old test scaffolding.

10 years agoAdded get_foreign_table_names to interface and put it in the test requirements.
Rodrigo Menezes [Fri, 5 Sep 2014 17:37:32 +0000 (13:37 -0400)] 
Added get_foreign_table_names to interface and put it in the test requirements.

10 years ago- ensure literal_binds works with LIMIT clause, FOR UPDATE
Mike Bayer [Wed, 3 Sep 2014 23:42:38 +0000 (19:42 -0400)] 
- ensure literal_binds works with LIMIT clause, FOR UPDATE

10 years agoFixing some pep8s and adding get_foreign_tables.
Rodrigo Menezes [Wed, 3 Sep 2014 20:38:43 +0000 (16:38 -0400)] 
Fixing some pep8s and adding get_foreign_tables.

10 years ago- The hostname-based connection format for SQL Server when using
Mike Bayer [Wed, 3 Sep 2014 14:30:51 +0000 (10:30 -0400)] 
- The hostname-based connection format for SQL Server when using
pyodbc will no longer specify a default "driver name", and a warning
is emitted if this is missing.  The optimal driver name for SQL Server
changes frequently and is per-platform, so hostname based connections
need to specify this. DSN-based connections are preferred.
fixes #3182