From 318dab9ab410974160b6aedafde5730814e59a07 Mon Sep 17 00:00:00 2001 From: adustman Date: Fri, 7 Sep 2012 17:23:22 +0000 Subject: [PATCH] Add a test case for #3514287. Was fixed in 1.2.3. --- MySQLdb/tests/test_MySQLdb_capabilities.py | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/MySQLdb/tests/test_MySQLdb_capabilities.py b/MySQLdb/tests/test_MySQLdb_capabilities.py index c4aad64..a2b9837 100644 --- a/MySQLdb/tests/test_MySQLdb_capabilities.py +++ b/MySQLdb/tests/test_MySQLdb_capabilities.py @@ -79,7 +79,18 @@ class test_MySQLdb(capabilities.DatabaseTest): self.cursor.execute("describe some_non_existent_table"); except self.connection.ProgrammingError, msg: self.assertTrue(msg[0] == ER.NO_SUCH_TABLE) - + + def test_bug_3514287(self): + c = self.cursor + try: + c.execute("""create table bug_3541287 ( + c1 CHAR(10), + t1 TIMESTAMP)""") + c.execute("insert into bug_3541287 (c1,t1) values (%s, NOW())", + ("blah",)) + finally: + c.execute("drop table if exists bug_3541287") + def test_ping(self): self.connection.ping()