]> 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:34:54 +0000 (16:34 -0400)
commite789a75f9a32413904d04e39de73be82df6a1bb7
tree7f154a9e2c2f17d8c0511e477103c51a09b23b4b
parenteb94838c72f543905f3667d1c7087a54df58c78a
- 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.

Conflicts:
test/orm/test_naturalpks.py
test/requirements.py
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