@@ -895,6 +895,32 @@ def test_mariadb_only_status_vars(self):
895
895
896
896
897
897
class TestDataTypeVersion8 (base .PyMySQLReplicationPercona8TestCase ):
898
+ def ignoredEvents (self ):
899
+ return [GtidEvent , PreviousGtidsEvent ]
900
+
901
+ def create_and_insert_value (self , create_query , insert_query ):
902
+ self .execute (create_query )
903
+ self .execute (insert_query )
904
+ self .execute ("COMMIT" )
905
+
906
+ self .assertIsInstance (self .stream .fetchone (), RotateEvent )
907
+ self .assertIsInstance (self .stream .fetchone (), FormatDescriptionEvent )
908
+ # QueryEvent for the Create Table
909
+ self .assertIsInstance (self .stream .fetchone (), QueryEvent )
910
+
911
+ # QueryEvent for the BEGIN
912
+ self .assertIsInstance (self .stream .fetchone (), QueryEvent )
913
+
914
+ self .assertIsInstance (self .stream .fetchone (), TableMapEvent )
915
+
916
+ event = self .stream .fetchone ()
917
+ if self .isMySQL56AndMore ():
918
+ self .assertEqual (event .event_type , WRITE_ROWS_EVENT_V2 )
919
+ else :
920
+ self .assertEqual (event .event_type , WRITE_ROWS_EVENT_V1 )
921
+ self .assertIsInstance (event , WriteRowsEvent )
922
+ return event
923
+
898
924
def test_partition_id (self ):
899
925
if not self .isMySQL80AndMore ():
900
926
self .skipTest ("Not supported in this version of MySQL" )
0 commit comments