summaryrefslogtreecommitdiff
path: root/test/sql/test_compiler.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-01-19 12:44:42 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-01-19 12:44:42 -0500
commit2a7f37b7b01930fb4e9227e5cab03ea26e0a4b55 (patch)
treedb27253c484b007d28de799857ec05134603f3d5 /test/sql/test_compiler.py
parentd4d9a6524886eb33644e8ce42212267fa569e555 (diff)
downloadsqlalchemy-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