diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-19 12:44:42 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2016-01-19 12:44:42 -0500 |
commit | 2a7f37b7b01930fb4e9227e5cab03ea26e0a4b55 (patch) | |
tree | db27253c484b007d28de799857ec05134603f3d5 /test/sql/test_compiler.py | |
parent | d4d9a6524886eb33644e8ce42212267fa569e555 (diff) | |
download | sqlalchemy-2a7f37b7b01930fb4e9227e5cab03ea26e0a4b55.tar.gz |
- 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
Diffstat (limited to 'test/sql/test_compiler.py')
0 files changed, 0 insertions, 0 deletions