]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Fixed bug where the expression system relied upon the ``str()``
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Jul 2013 15:32:34 +0000 (11:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 12 Jul 2013 15:33:24 +0000 (11:33 -0400)
commit574dba8e61f5f86e0c809c0c15640379a8847533
treea30d10eeb835b067a14520530265294aff43f0ab
parent1e332e03d3943b59e8fa315977dc9604a9334145
Fixed bug where the expression system relied upon the ``str()``
form of a some expressions when referring to the ``.c`` collection
on a ``select()`` construct, but the ``str()`` form isn't available
since the element relies on dialect-specific compilation constructs,
notably the ``__getitem__()`` operator as used with a Postgresql
``ARRAY`` element.  The fix also adds a new exception class
:class:`.UnsupportedCompilationError` which is raised in those cases
where a compiler is asked to compile something it doesn't know
how to.
[ticket:2780]
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/exc.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/expression.py
lib/sqlalchemy/sql/visitors.py
test/sql/test_compiler.py
test/sql/test_selectable.py