]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The primary :class:`.Mapper` of a :class:`.Query` is now passed to the
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jan 2015 22:55:23 +0000 (17:55 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 19 Jan 2015 22:55:23 +0000 (17:55 -0500)
commit611883ffb35ca6664649f6328ae896c80f499780
tree49d06465060b1c1edcd59ee42445171440f144ba
parentdacfe7dec2d940ced2c96ef313404ab137bb69f6
- The primary :class:`.Mapper` of a :class:`.Query` is now passed to the
:meth:`.Session.get_bind` method when calling upon
:meth:`.Query.count`, :meth:`.Query.update`, :meth:`.Query.delete`,
as well as queries against mapped columns,
:obj:`.column_property` objects, and SQL functions and expressions
derived from mapped columns.   This allows sessions that rely upon
either customized :meth:`.Session.get_bind` schemes or "bound" metadata
to work in all relevant cases.
fixes #3227 fixes #3242 fixes #1326
doc/build/changelog/changelog_10.rst
doc/build/changelog/migration_10.rst
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/orm/query.py
test/orm/test_query.py