]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
allow Executable to be accepted by Session.execute()
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 04:01:13 +0000 (23:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 15 Jan 2021 04:35:41 +0000 (23:35 -0500)
commit038ee979985c5585287c5636bbfde607082f5130
tree7c930695be7e7ab4f10674701d018737c7954392
parent6be06d85e598e4fda6f3d35084e1c5cccb30cee5
allow Executable to be accepted by Session.execute()

Fixed an issue where the API to create a custom executable SQL construct
using the ``sqlalchemy.ext.compiles`` extension according to the
documentation that's been up for many years would no longer function if
only ``Executable, ClauseElement`` were used as the base classes,
additional classes were needed if wanting to use
:meth:`_orm.Session.execute`. This has been resolved so that those extra
classes aren't needed.

Change-Id: I99b8acd88515c2a52842d62974199121e64c0381
doc/build/changelog/unreleased_14/simplify_executable.rst [new file with mode: 0644]
lib/sqlalchemy/sql/base.py
lib/sqlalchemy/sql/elements.py
test/ext/test_compiler.py