Skip to content

Commit

Permalink
improve backward compatibility of 'SHOW SLAVE HOSTS' command
Browse files Browse the repository at this point in the history
  • Loading branch information
lyzx2001 committed Nov 10, 2022
1 parent ceb4210 commit 1c100ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dm/pkg/conn/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ func TestGetMasterStatus(t *testing.T) {
475,
"",
"",
"0-1-2",
"",
nil,
gmysql.MariaDBFlavor,
},
Expand All @@ -111,7 +111,7 @@ func TestGetMasterStatus(t *testing.T) {
if ca.flavor == gmysql.MariaDBFlavor {
mock.ExpectQuery("SHOW GLOBAL VARIABLES LIKE 'gtid_binlog_pos'").WillReturnRows(
sqlmock.NewRows([]string{"Variable_name", "Value"}).
AddRow("gtid_binlog_pos", "0-1-2"),
AddRow("gtid_binlog_pos", ""),
)
}
binlogName, pos, binlogDoDB, binlogIgnoreDB, gtidStr, err := GetMasterStatus(tctx, baseDB, ca.flavor)
Expand Down

0 comments on commit 1c100ab

Please sign in to comment.