diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-28 16:32:11 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2014-03-28 16:32:11 -0400 |
commit | c01558ae7f4af08acc523786e107ea5e2e214184 (patch) | |
tree | a235ab825660b00c674f496354b364f58f8b464a /test/requirements.py | |
parent | 9cdbed37f8c420db0b42fb959813d079622c3f3a (diff) | |
download | sqlalchemy-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 'test/requirements.py')
-rw-r--r-- | test/requirements.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/test/requirements.py b/test/requirements.py index 4184058b2..d6b1d3969 100644 --- a/test/requirements.py +++ b/test/requirements.py @@ -64,6 +64,13 @@ class DefaultRequirements(SuiteRequirements): ) @property + def non_updating_cascade(self): + """target database must *not* support ON UPDATE..CASCADE behavior in + foreign keys.""" + + return fails_on_everything_except('sqlite', 'oracle', '+zxjdbc') + skip_if('mssql') + + @property def deferrable_fks(self): """target database must support deferrable fks""" @@ -438,7 +445,7 @@ class DefaultRequirements(SuiteRequirements): @property def sane_multi_rowcount(self): - return skip_if( + return fails_if( lambda config: not config.db.dialect.supports_sane_multi_rowcount, "driver doesn't support 'sane' multi row count" ) |