-
Notifications
You must be signed in to change notification settings - Fork 218
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
[bug] delete/update got error as column name without quote if the column name is a keyword. #560
Labels
type: bug
Something isn't working
Comments
ACK |
checksum table without quote, if table has "-", we'll meet SQL syntax error:
|
hustjieke
added a commit
to hustjieke/radon
that referenced
this issue
Jan 10, 2020
[summary] 1. db or table name may include "-", like "a-b_db" or "a-b_tbl" 2. column name may be a keyword, like "char", "key"... They should be quoted when send delete/update sql to backend. [test case] vendor/github.com/radondb/shift/shift_test [patch codecov] vendor/github.com/radondb/shift/shift coverage: 76.1% of statements
hustjieke
added a commit
to hustjieke/radon
that referenced
this issue
Jan 10, 2020
[summary] 1. db or table name may include "-", like "a-b_db" or "a-b_tbl" 2. column name may be a keyword, like "char", "key"... They should be quoted when send delete/update sql to backend. [test case] vendor/github.com/radondb/shift/shift_test [patch codecov] vendor/github.com/radondb/shift/shift coverage: 76.1% of statements
hustjieke
added a commit
to hustjieke/radon
that referenced
this issue
Jan 10, 2020
[summary] 1. db or table name may include "-", like "a-b_db" or "a-b_tbl" 2. column name may be a keyword, like "char", "key"... They should be quoted when send delete/update sql to backend. [test case] vendor/github.com/radondb/shift/shift_test [patch codecov] vendor/github.com/radondb/shift/shift coverage: 76.1% of statements
BohuTANG
pushed a commit
that referenced
this issue
Jan 17, 2020
[summary] 1. db or table name may include "-", like "a-b_db" or "a-b_tbl" 2. column name may be a keyword, like "char", "key"... They should be quoted when send delete/update sql to backend. [test case] vendor/github.com/radondb/shift/shift_test [patch codecov] vendor/github.com/radondb/shift/shift coverage: 76.1% of statements
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
when shift from mysql to mysql, when we do update/delete action, we'll get error as the column name we send is without quote if che column name is a keyword.
e.g.:
The text was updated successfully, but these errors were encountered: