summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/engine/default.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 16:32:11 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-28 16:32:11 -0400
commitc01558ae7f4af08acc523786e107ea5e2e214184 (patch)
treea235ab825660b00c674f496354b364f58f8b464a /lib/sqlalchemy/engine/default.py
parent9cdbed37f8c420db0b42fb959813d079622c3f3a (diff)
downloadsqlalchemy-c01558ae7f4af08acc523786e107ea5e2e214184.tar.gz
- Fixed ORM bug where changing the primary key of an object, then marking
it for DELETE would fail to target the correct row for DELETE. Then to compound matters, basic "number of rows matched" checks were not being performed. Both issues are fixed, however note that the "rows matched" check requires so-called "sane multi-row count" functionality; the DBAPI's executemany() method must count up the rows matched by individual statements and SQLAlchemy's dialect must mark this feature as supported, currently applies to some mysql dialects, psycopg2, sqlite only. fixes #3006 - Enabled "sane multi-row count" checking for the psycopg2 DBAPI, as this seems to be supported as of psycopg2 2.0.9.
Diffstat (limited to 'lib/sqlalchemy/engine/default.py')
-rw-r--r--lib/sqlalchemy/engine/default.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/sqlalchemy/engine/default.py b/lib/sqlalchemy/engine/default.py
index 0fd41105c..368a08ec2 100644
--- a/lib/sqlalchemy/engine/default.py
+++ b/lib/sqlalchemy/engine/default.py
@@ -514,6 +514,8 @@ class DefaultExecutionContext(interfaces.ExecutionContext):
self.compiled = compiled
if not compiled.can_execute:
+ import pdb
+ pdb.set_trace()
raise exc.ArgumentError("Not an executable clause")
self.execution_options = compiled.statement._execution_options