Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into issue36194
Browse files Browse the repository at this point in the history
  • Loading branch information
time-and-fate committed Jul 13, 2022
2 parents be23caf + d93bc7a commit ee63c3d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion util/table-filter/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (p *tableRulesParser) parse(line string, canImport bool) error {
return err
}
if len(line) == 0 {
return p.errorf("missing table pattern")
return p.errorf("wrong table pattern")
}
if line[0] != '.' {
return p.errorf("syntax error: missing '.' between schema and table patterns")
Expand Down
6 changes: 3 additions & 3 deletions util/table-filter/table_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ func TestMatchTables(t *testing.T) {
require.NoError(t, err)
fci := filter.CaseInsensitive(fcs)
for i, tbl := range tc.tables {
require.Equalf(t, fcs.MatchTable(tbl.Schema, tbl.Name), tc.acceptedCS[i], "cs tbl %v", tbl)
require.Equalf(t, fci.MatchTable(tbl.Schema, tbl.Name), tc.acceptedCI[i], "ci tbl %v", tbl)
require.Equalf(t, tc.acceptedCS[i], fcs.MatchTable(tbl.Schema, tbl.Name), "cs tbl %v", tbl)
require.Equalf(t, tc.acceptedCI[i], fci.MatchTable(tbl.Schema, tbl.Name), "ci tbl %v", tbl)
}
}
}
Expand Down Expand Up @@ -383,7 +383,7 @@ func TestParseFailures2(t *testing.T) {
},
{
arg: "db",
msg: `.*: missing table pattern`,
msg: `.*: wrong table pattern`,
},
{
arg: "db.",
Expand Down

0 comments on commit ee63c3d

Please sign in to comment.