Skip to content

Commit 95a9b19

Browse files
committed
Two more test cases
1 parent 969d0be commit 95a9b19

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pymysqlreplication/tests/test_data_type.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,13 +222,15 @@ def test_longlong(self):
222222
self.assertEqual(event.rows[0]["values"]["test"], -9223372036854775808)
223223

224224
def test_int24(self):
225-
create_query = "CREATE TABLE test (id MEDIUMINT UNSIGNED NOT NULL, test MEDIUMINT, test2 MEDIUMINT, test3 MEDIUMINT)"
226-
insert_query = "INSERT INTO test VALUES(16777215, 8388607, -8388608, 8)"
225+
create_query = "CREATE TABLE test (id MEDIUMINT UNSIGNED NOT NULL, test MEDIUMINT, test2 MEDIUMINT, test3 MEDIUMINT, test4 MEDIUMINT, test5 MEDIUMINT)"
226+
insert_query = "INSERT INTO test VALUES(16777215, 8388607, -8388608, 8, -8, 0)"
227227
event = self.create_and_insert_value(create_query, insert_query)
228228
self.assertEqual(event.rows[0]["values"]["id"], 16777215)
229229
self.assertEqual(event.rows[0]["values"]["test"], 8388607)
230230
self.assertEqual(event.rows[0]["values"]["test2"], -8388608)
231231
self.assertEqual(event.rows[0]["values"]["test3"], 8)
232+
self.assertEqual(event.rows[0]["values"]["test4"], -8)
233+
self.assertEqual(event.rows[0]["values"]["test5"], 0)
232234

233235
def test_date(self):
234236
create_query = "CREATE TABLE test (test DATE);"

0 commit comments

Comments
 (0)