]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :attr:`.Column.key` attribute is now used as the source of
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Nov 2014 22:37:26 +0000 (17:37 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 10 Nov 2014 22:37:26 +0000 (17:37 -0500)
commita19b2f419cd876b561a3b3c21ebed5c223192883
tree333e5880330fa6cc567085967040effa1d6ac418
parent9b1777288ba9f49248485ead0f77597dacf6de2e
- The :attr:`.Column.key` attribute is now used as the source of
anonymous bound parameter names within expressions, to match the
existing use of this value as the key when rendered in an INSERT
or UPDATE statement.   This allows :attr:`.Column.key` to be used
as a "substitute" string to work around a difficult column name
that doesn't translate well into a bound parameter name.   Note that
the paramstyle is configurable on :func:`.create_engine` in any case,
and most DBAPIs today support a named and positional style.
fixes #3245
doc/build/changelog/changelog_10.rst
lib/sqlalchemy/sql/elements.py
test/dialect/mssql/test_reflection.py
test/sql/test_compiler.py