We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fefe036 commit 2b1520fCopy full SHA for 2b1520f
lib/packets/resultset_header.js
@@ -50,6 +50,7 @@ class ResultSetHeader {
50
stateChanges = {
51
systemVariables: {},
52
schema: null,
53
+ gtids: [],
54
trackStateChange: null
55
};
56
}
@@ -72,6 +73,12 @@ class ResultSetHeader {
72
73
stateChanges.trackStateChange = packet.readLengthCodedString(
74
encoding
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(',');
82
} else {
83
// unsupported session track type. For now just ignore
84
0 commit comments