]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Avoid proxy functions in row functions
authorFederico Caselli <cfederico87@gmail.com>
Thu, 21 May 2020 19:50:49 +0000 (21:50 +0200)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 23 May 2020 23:40:06 +0000 (19:40 -0400)
commitf79953a874c201a31a8972b999d18547bf227f25
treee71779e41fc3d7dc8a1bacfd0aea6716a80c5856
parent31d1846b76baec6ffa4c65bd72456a58f7b2ef1b
Avoid proxy functions in row functions

This streamlines a bit for non-C implementations, however
also adds and tests behavioral contracts that mappings should
not allow integer or slice access and should behave like a
Python mapping in that it raises KeyError for an integer
and TypeError for a slice.   Py3/Py2/C/noC :)

References: #5340
Change-Id: Id3cef452dc8a526b8371c90c5ca2bbb240b25c26
lib/sqlalchemy/cextension/resultproxy.c
lib/sqlalchemy/dialects/mssql/base.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/engine/row.py
test/base/test_result.py
test/profiles.txt