]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests.
authorJason Kirtland <jek@discorporate.us>
Wed, 26 Sep 2007 23:35:14 +0000 (23:35 +0000)
committerJason Kirtland <jek@discorporate.us>
Wed, 26 Sep 2007 23:35:14 +0000 (23:35 +0000)
test/sql/defaults.py

index 7f234667238493d677ebeaf5a0e436c068b5d2bd..205de487c8677a8c84389263c17c5c290da51fd6 100644 (file)
@@ -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(