Skip to content

Commit 632a7f8

Browse files
dobegoratercattus
authored andcommitted
Fix parsing GTIDs from mysqlpdump
This address the issue #550. (cherry picked from commit 6f9431a7102cc23e32262dfbf7f0bb74df485545)
1 parent 8d7152e commit 632a7f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dump/parser.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func init() {
3434
valuesExp = regexp.MustCompile("^INSERT INTO `(.+?)` VALUES \\((.+)\\);$")
3535
// The pattern will only match MySQL GTID, as you know SET GLOBAL gtid_slave_pos='0-1-4' is used for MariaDB.
3636
//SET @@GLOBAL.GTID_PURGED='1638041a-0457-11e9-bb9f-00505690b730:1-429405150';
37-
gtidExp = regexp.MustCompile("(\\w{8}(-\\w{4}){3}-\\w{12}:\\d+-\\d+)")
37+
gtidExp = regexp.MustCompile(`(\w{8}(-\w{4}){3}-\w{12}(:\d+-\d+)+)`)
3838
}
3939

4040
// Parse the dump data with Dumper generate.

0 commit comments

Comments
 (0)