summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2021-03-31 00:13:56 +0000
committerGerrit Code Review <gerrit@ci3.zzzcomputing.com>2021-03-31 00:13:56 +0000
commitcf92a8eadad058aff2cce44cecdb5fd76ac97379 (patch)
tree188a1009ed6191e76ec1f9aa624bcd78f89a28b8 /lib/sqlalchemy/engine
parent214e62aeb7bf7248767ad9e69f094ea69718180b (diff)
parent3df6a3f1fbb589110c3ef3f344758bb11d3dc3df (diff)
downloadsqlalchemy-cf92a8eadad058aff2cce44cecdb5fd76ac97379.tar.gz
Merge "Repair exception handling in CursorResult"
Diffstat (limited to 'lib/sqlalchemy/engine')
-rw-r--r--lib/sqlalchemy/engine/cursor.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sqlalchemy/engine/cursor.py b/lib/sqlalchemy/engine/cursor.py
index b5b92b171..5a3b92901 100644
--- a/lib/sqlalchemy/engine/cursor.py
+++ b/lib/sqlalchemy/engine/cursor.py
@@ -1624,7 +1624,7 @@ class BaseCursorResult(object):
try:
return self.context.rowcount
except BaseException as e:
- self.cursor_strategy.handle_exception(self, e)
+ self.cursor_strategy.handle_exception(self, self.cursor, e)
@property
def lastrowid(self):
@@ -1645,7 +1645,7 @@ class BaseCursorResult(object):
try:
return self.context.get_lastrowid()
except BaseException as e:
- self.cursor_strategy.handle_exception(self, e)
+ self.cursor_strategy.handle_exception(self, self.cursor, e)
@property
def returns_rows(self):