summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/base.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2016-01-05 10:25:36 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2016-01-05 10:25:36 -0500
commit197ffa2be2cadce3df8bfb0799b3c80158250286 (patch)
treea67320139e3ae72014a71bdd56396660408a4b12 /lib/sqlalchemy/engine/base.py
parent04b1a52783a38148e52d50566161bdaf5262cd43 (diff)
downloadsqlalchemy-197ffa2be2cadce3df8bfb0799b3c80158250286.tar.gz
- Fixed 1.0 regression where the eager fetch of cursor.rowcount was
no longer called for an UPDATE or DELETE statement emitted via plain text or via the :func:`.text` construct, affecting those drivers that erase cursor.rowcount once the cursor is closed such as SQL Server ODBC and Firebird drivers. fixes #3622
Diffstat (limited to 'lib/sqlalchemy/engine/base.py')
-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 eaa435d45..31e253eed 100644
--- a/lib/sqlalchemy/engine/base.py
+++ b/lib/sqlalchemy/engine/base.py
@@ -1155,7 +1155,7 @@ class Connection(Connectable):
if context.compiled:
context.post_exec()
- if context.is_crud:
+ if context.is_crud or context.is_text:
result = context._setup_crud_result_proxy()
else:
result = context.get_result_proxy()