You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SQL syntax parsing exception when the field name in the SQL statement is error,
What did you do?
If possible, provide a recipe for reproducing the error.
func TestExample(t *testing.T) {
p := parser.New()
stmtNodes, _, err := p.Parse("select message_id,error,update_time from test", "", "")
fmt.Println(stmtNodes[0], err)
}
What did you expect to see?
Get sql syntax tree
What did you see instead?
Syntax parsing exception
panic: runtime error: index out of range [0] with length 0 [recovered]
panic: runtime error: index out of range [0] with length 0
goroutine 36 [running]:
What version of TiDB SQL Parser are you using?
v0.0.0-20200218113622-517beb2e39c2
The text was updated successfully, but these errors were encountered:
Bug Report
SQL syntax parsing exception when the field name in the SQL statement is
error
,If possible, provide a recipe for reproducing the error.
What did you expect to see?
Get sql syntax tree
What did you see instead?
Syntax parsing exception
v0.0.0-20200218113622-517beb2e39c2
The text was updated successfully, but these errors were encountered: