File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class ResultSetHeader {
50
50
stateChanges = {
51
51
systemVariables : { } ,
52
52
schema : null ,
53
+ gtids : [ ] ,
53
54
trackStateChange : null
54
55
} ;
55
56
}
@@ -72,6 +73,12 @@ class ResultSetHeader {
72
73
stateChanges . trackStateChange = packet . readLengthCodedString (
73
74
encoding
74
75
) ;
76
+ } else if ( type === sessionInfoTypes . STATE_GTIDS ) {
77
+ // TODO: find if the first length coded string means anything. Usually comes as empty
78
+ // eslint-disable-next-line no-unused-vars
79
+ const _unknownString = packet . readLengthCodedString ( encoding ) ;
80
+ const gtid = packet . readLengthCodedString ( encoding ) ;
81
+ stateChanges . gtids = gtid . split ( ',' ) ;
75
82
} else {
76
83
// unsupported session track type. For now just ignore
77
84
}
You can’t perform that action at this time.
0 commit comments