summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/plugin_base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2019-10-03 17:36:27 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2019-10-07 23:06:06 -0400
commit65aee6cce57fd1cca3a95814feff3ed99a5a51ee (patch)
tree0352d74938902a9242dfb97ca5215d9191a2ad16 /lib/sqlalchemy/testing/plugin/plugin_base.py
parentebd9788c986c56b8b845fa83609a6eb2c0cef083 (diff)
downloadsqlalchemy-65aee6cce57fd1cca3a95814feff3ed99a5a51ee.tar.gz
Add result map targeting for custom compiled, text objects
In order for text(), custom compiled objects, etc. to be usable by Query(), they are all targeted by object key in the result map. As we no longer want Query to implicitly label these, as well as that text() has no label feature, support adding entries to the result map that have no name, key, or type, only the object itself, and then ensure that the compiler sets up for positional targeting when this condition is detected. Allows for more flexible ORM query usage with custom expressions and text() while having less special logic in query itself. Fixes: #4887 Change-Id: Ie073da127d292d43cb132a2b31bc90af88bfe2fd
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/plugin_base.py')
0 files changed, 0 insertions, 0 deletions