1. idank
  2. sqlalchemy

Commits

jason kirtland  committed 297ed3b

Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests.

  • Participants
  • Parent commits 37ef5b2
  • Branches default

Comments (0)

Files changed (1)

File test/sql/defaults.py

View file
             ])
 
     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()
         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(