Skip to content

Commit d70bc3d

Browse files
1 parent 81e90ba commit d70bc3d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pymysqlreplication/tests/test_data_type.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,11 @@ def test_date(self):
215215
self.assertEqual(event.rows[0]["values"]["test"], datetime.date(1984, 12, 3))
216216

217217
def test_zero_date(self):
218-
create_query = "CREATE TABLE test (id INTEGER, test DATE);"
219-
insert_query = "INSERT INTO test (id) VALUES(1)"
218+
create_query = "CREATE TABLE test (id INTEGER, test DATE, test2 DATE);"
219+
insert_query = "INSERT INTO test (id, test2) VALUES(1, '0000-01-21')"
220220
event = self.create_and_insert_value(create_query, insert_query)
221221
self.assertEqual(event.rows[0]["values"]["test"], None)
222+
self.assertEqual(event.rows[0]["values"]["test2"], None)
222223

223224
def test_time(self):
224225
create_query = "CREATE TABLE test (test TIME);"

0 commit comments

Comments
 (0)