mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2025-08-16 03:50:43 +08:00
Add a test case for #3514287. Was fixed in 1.2.3.
This commit is contained in:
@ -80,6 +80,17 @@ class test_MySQLdb(capabilities.DatabaseTest):
|
||||
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()
|
||||
|
||||
|
Reference in New Issue
Block a user