]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The SQL compiler now generates the mapping of expected columns
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Mar 2015 17:48:13 +0000 (12:48 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 7 Mar 2015 22:18:31 +0000 (17:18 -0500)
commitb3d3795de0d45fe4adda7393881f0f955409a45d
treee1ed366f07f596388cfca024ae20128131565f61
parent0a1f720355f02d38da2a5a8444712dd7d199c713
- The SQL compiler now generates the mapping of expected columns
such that they are matched to the received result set positionally,
rather than by name.  Originally, this was seen as a way to handle
cases where we had columns returned with difficult-to-predict names,
though in modern use that issue has been overcome by anonymous
labeling.   In this version, the approach basically reduces function
call count per-result by a few dozen calls, or more for larger
sets of result columns.  The approach still degrades into a modern
version of the old approach if textual elements modify the result
map, or if any discrepancy in size exists between
the compiled set of columns versus what was received, so there's no
issue for partially or fully textual compilation scenarios where these
lists might not line up.  fixes #918
- callcounts still need to be adjusted down for this so zoomark
tests won't pass at the moment
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/engine/result.py
lib/sqlalchemy/sql/compiler.py
test/sql/test_defaults.py
test/sql/test_query.py