Skip to content

Commit

Permalink
fix (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uarealoser authored Mar 26, 2021
1 parent be1b26b commit 651421c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion parser/ast/ddl.go
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,7 @@ func (n *DropTableStmt) Restore(ctx *format.RestoreCtx) error {
ctx.WritePlain(", ")
}
if err := table.Restore(ctx); err != nil {
return errors.Annotate(err, "An error occurred while restore DropTableStmt.Tables "+string(index))
return errors.Annotatef(err, "An error occurred while restore DropTableStmt.Tables[%d]", index)
}
}

Expand Down
2 changes: 1 addition & 1 deletion parser/lexer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (s *testLexerSuite) TestscanString(c *C) {
{`' \n\tTest String'`, " \n\tTest String"},
{`'\x\B'`, "xB"},
{`'\0\'\"\b\n\r\t\\'`, "\000'\"\b\n\r\t\\"},
{`'\Z'`, string(26)},
{`'\Z'`, string(rune(26))},
{`'\%\_'`, `\%\_`},
{`'hello'`, "hello"},
{`'"hello"'`, `"hello"`},
Expand Down

0 comments on commit 651421c

Please sign in to comment.