]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Check for supports_execution at ClauseElement base
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Aug 2016 18:34:54 +0000 (14:34 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 31 Aug 2016 21:04:35 +0000 (17:04 -0400)
commitc7b9c84312b6b252e68ea704670d0ea7fc0042f0
treea71b8cbbb123e10a779c3a1f8efb4fc09ce47bf1
parent53c3119ebb6801cbfcaf2841311d117eba250444
Check for supports_execution at ClauseElement base

Raise a more descriptive exception / message when ClauseElement
or non-SQLAlchemy objects that are not "executable" are erroneously
passed to ``.execute()``; a new exception ObjectNotExecutableError
is raised consistently in all cases.

Change-Id: I2dd393121e2c7e5b6b9e40286a2f25670876e8e4
Fixes: #3786
doc/build/changelog/changelog_11.rst
lib/sqlalchemy/engine/base.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/exc.py
lib/sqlalchemy/sql/compiler.py
lib/sqlalchemy/sql/elements.py
lib/sqlalchemy/sql/schema.py
test/engine/test_execute.py