From 3a04b7e4d4a4913cdbb60439b5371cf41c91c976 Mon Sep 17 00:00:00 2001 From: Jason Kirtland Date: Wed, 26 Sep 2007 23:35:14 +0000 Subject: [PATCH] Avoid tickling the MySQL-python 1.2.2 executemany parsing bug on a couple tests. --- test/sql/defaults.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/sql/defaults.py b/test/sql/defaults.py index 7f23466723..205de487c8 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( -- 2.47.3