diff options
author | Jason Kirtland <jek@discorporate.us> | 2007-09-26 23:35:14 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2007-09-26 23:35:14 +0000 |
commit | 3a04b7e4d4a4913cdbb60439b5371cf41c91c976 (patch) | |
tree | 20d59e25267282e989416eca050f37e64b2f91c4 | |
parent | 32ee73460d011cb400cb8ef55fe13a201af3441c (diff) | |
download | sqlalchemy-3a04b7e4d4a4913cdbb60439b5371cf41c91c976.tar.gz |
Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests.
-rw-r--r-- | test/sql/defaults.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/sql/defaults.py b/test/sql/defaults.py index 7f2346672..205de487c 100644 --- a/test/sql/defaults.py +++ b/test/sql/defaults.py @@ -152,6 +152,11 @@ class DefaultTest(PersistTest): ]) def testinsertmany(self): + # MySQL-Python 1.2.2 breaks functions in execute_many :( + if (testbase.db.name == 'mysql' and + testbase.db.dialect.dbapi.version_info[:3] == (1, 2, 2)): + return + r = t.insert().execute({}, {}, {}) ctexec = currenttime.scalar() @@ -165,6 +170,11 @@ class DefaultTest(PersistTest): self.assert_(l.fetchone()['col3'] == 50) def testupdatemany(self): + # MySQL-Python 1.2.2 breaks functions in execute_many :( + if (testbase.db.name == 'mysql' and + testbase.db.dialect.dbapi.version_info[:3] == (1, 2, 2)): + return + t.insert().execute({}, {}, {}) t.update(t.c.col1==bindparam('pkval')).execute( |