]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The ``str()`` call for :class:`.Query` will now take into account
authorMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Jan 2016 17:44:42 +0000 (12:44 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Tue, 19 Jan 2016 17:44:42 +0000 (12:44 -0500)
commit2a7f37b7b01930fb4e9227e5cab03ea26e0a4b55
treedb27253c484b007d28de799857ec05134603f3d5
parentd4d9a6524886eb33644e8ce42212267fa569e555
- The ``str()`` call for :class:`.Query` will now take into account
the :class:`.Engine` to which the :class:`.Session` is bound, when
generating the string form of the SQL, so that the actual SQL
that would be emitted to the database is shown, if possible.  Previously,
only the engine associated with the :class:`.MetaData` to which the
mappings are associated would be used, if present.  If
no bind can be located either on the :class:`.Session` or on
the :class:`.MetaData` to which the mappings are associated, then
the "default" dialect is used to render the SQL, as was the case
previously.  fixes #3081
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
lib/sqlalchemy/orm/query.py
lib/sqlalchemy/testing/assertions.py
test/orm/test_query.py