summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/test/requires.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2010-09-16 11:29:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2010-09-16 11:29:01 -0400
commit90d4cdbac80f0f87f365efdf9b596eff77764bed (patch)
tree98dacaa14d1aa9906546684af5f848f0a5c81e23 /lib/sqlalchemy/test/requires.py
parentb609030130eb4c415deee5516e2450ed660f2717 (diff)
downloadsqlalchemy-90d4cdbac80f0f87f365efdf9b596eff77764bed.tar.gz
- Fixed a regression in 0.6.4 whereby the change that
allowed cursor errors to be raised consistently broke the result.lastrowid accessor. Test coverage has been added for result.lastrowid. Note that lastrowid is only supported by Pysqlite and some MySQL drivers, so isn't super-useful in the general case.
Diffstat (limited to 'lib/sqlalchemy/test/requires.py')
-rw-r--r--lib/sqlalchemy/test/requires.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/sqlalchemy/test/requires.py b/lib/sqlalchemy/test/requires.py
index 501f0e24d..dc0b29228 100644
--- a/lib/sqlalchemy/test/requires.py
+++ b/lib/sqlalchemy/test/requires.py
@@ -247,6 +247,12 @@ def sane_rowcount(fn):
skip_if(lambda: not testing.db.dialect.supports_sane_rowcount)
)
+def dbapi_lastrowid(fn):
+ return _chain_decorators_on(
+ fn,
+ fails_on_everything_except('mysql+mysqldb', 'sqlite+pysqlite')
+ )
+
def sane_multi_rowcount(fn):
return _chain_decorators_on(
fn,