-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can use status w/o quotes for insert statement #85
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing, think update needs the same patch
go/vt/sqlparser/parse_test.go
Outdated
@@ -2639,6 +2639,10 @@ func TestKeywords(t *testing.T) { | |||
}, { | |||
input: "select /* unused keywords as cols */ write, virtual from t where trailing = 'foo'", | |||
output: "select /* unused keywords as cols */ `write`, `virtual` from t where `trailing` = 'foo'", | |||
}, { | |||
input: "insert into x (status) values (42)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a test for update and delete too, bet one of them has the same issue.
Also you or Vinai should expand the reserved word test you wrote to include updates, deletes, inserts
go/vt/sqlparser/parse_test.go
Outdated
input: "insert into x (status) values (42)", | ||
output: "insert into x(`status`) values (42)", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete duplicate
re: dolthub/dolt#2195