]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
- Fixed ORM bug where changing the primary key of an object, then marking
authorMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 20:32:11 +0000 (16:32 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Fri, 28 Mar 2014 20:32:11 +0000 (16:32 -0400)
commitc01558ae7f4af08acc523786e107ea5e2e214184
treea235ab825660b00c674f496354b364f58f8b464a
parent9cdbed37f8c420db0b42fb959813d079622c3f3a
- 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.
doc/build/changelog/changelog_08.rst
lib/sqlalchemy/dialects/postgresql/psycopg2.py
lib/sqlalchemy/engine/default.py
lib/sqlalchemy/ext/orderinglist.py
lib/sqlalchemy/orm/persistence.py
lib/sqlalchemy/testing/exclusions.py
lib/sqlalchemy/testing/requirements.py
test/orm/test_naturalpks.py
test/orm/test_unitofworkv2.py
test/requirements.py