summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2021-06-23 16:34:05 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2021-06-23 16:42:33 -0400
commit80b90cbcfe91e94f67d768d407fa274ec75e69cd (patch)
tree5d08e49ec24519270768643385d517d7abfd72f9 /lib/sqlalchemy/engine
parent2f875a4b7925742b53dd8cfda1476f7f30a18f5d (diff)
downloadsqlalchemy-80b90cbcfe91e94f67d768d407fa274ec75e69cd.tar.gz
Add Executable to DefaultGenerator
Fixed the class hierarchy for the :class:`_schema.Sequence` and the more general :class:`_schema.DefaultGenerator` base, as these are "executable" as statements they need to include :class:`_sql.Executable` in their hierarchy, not just :class:`_roles.StatementRole` as was applied arbitrarily to :class:`_schema.Sequence` previously. The fix allows :class:`_schema.Sequence` to work in all ``.execute()`` methods including with :meth:`_orm.Session.execute` which was not working in the case that a ``do_orm_execute()`` handler was also established. Fixes: #6668 Change-Id: I0d192258c7cbd1bce2552f9e748e8fdd680dc45f
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
index 64f638a50..c21677a81 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -1835,7 +1835,7 @@ class Connection(Connectable):
if self._echo:
self._log_info(statement)
- self._log_info("%r", parameters)
+ self._log_info("[raw sql] %r", parameters)
try:
for fn in (
()