]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Don't rely on string col name in adapt_to_context
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 5 Sep 2020 23:45:04 +0000 (19:45 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 6 Sep 2020 13:55:27 +0000 (09:55 -0400)
commitb0e9083eb2a786670a1a129d7968d768d1c4ab42
treee13e21eb1743258c8a376ab8c816f998bab0abb8
parentfc612d17145453ad95e5f9ba6a40ba70d2f507c3
Don't rely on string col name in adapt_to_context

fixed an issue where even though the method claims to be
matching up columns positionally, it was failing on that by
looking in "keymap" based on string name.

Adds a new member to the _keymap recs MD_RESULT_MAP_INDEX
so that we can efficiently link from the generated keymap
back to the compiled._result_columns structure without
any ambiguity.

Fixes: #5559
Change-Id: Ie2fa9165c16625ef860ffac1190e00575e96761f
lib/sqlalchemy/engine/cursor.py
test/dialect/oracle/test_compiler.py
test/sql/test_compiler.py
test/sql/test_deprecations.py
test/sql/test_resultset.py
test/sql/test_text.py