]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- The :func:`.type_coerce` construct is now a fully fledged Core
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2015 22:46:53 +0000 (18:46 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 16 Sep 2015 22:46:53 +0000 (18:46 -0400)
commit24a7241b5ef63f8e82c007d89f5c179d9596bf10
tree00238ad56de2b15ac11df8e333de1e98e5386cab
parent7eb34baf99179eec966ddd8b3607a6d8cfdfba21
- The :func:`.type_coerce` construct is now a fully fledged Core
expression element which is late-evaluated at compile time.  Previously,
the function was only a conversion function which would handle different
expression inputs by returning either a :class:`.Label` of a column-oriented
expression or a copy of a given :class:`.BindParameter` object,
which in particular prevented the operation from being logically
maintained when an ORM-level expression transformation would convert
a column to a bound parameter (e.g. for lazy loading).
fixes #3531
doc/build/changelog/changelog_11.rst
doc/build/changelog/migration_11.rst
doc/build/core/sqlelement.rst
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/sqltypes.py
test/orm/test_lazy_relations.py
test/sql/test_compiler.py
test/sql/test_types.py