We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It fails when inserting records with the DEFAULT function receiving the column name status.
DEFAULT
status
Steps to reproduce this issue:
vschema
{ "sharded": true, "vindexes": { "unicode_loose_md5": { "type": "unicode_loose_md5" } }, "tables": { "user": { "column_vindexes": [ { "column": "username", "name": "unicode_loose_md5" } ] } } }
schema
CREATE TABLE `user` ( username varchar(128) NOT NULL, `status` varchar(128) NOT NULL DEFAULT "UNKNOWN" );
INSERT INTO user(username, status) VALUES ("Chuck", DEFAULT(`status`))
ERROR 1105 (HY000) at line 1: vtgate: http://vtgate-865353cb-55c58f5bbf-6l6b7:15000/: execInsertSharded: target: live.80-.master, used tablet: zone1-3423003548 (172.31.29.20): vttablet: rpc error: code = InvalidArgument desc = syntax error at position 73 near 'status' (CallerID: user1)
Using vitess operator with Kubernetes version 1.15 MariaDB 10.3.22 Running with:
vtctld: vitess/lite:v6.0.20-20200429 vtgate: vitess/lite:v6.0.20-20200429 vttablet: vitess/lite:v6.0.20-20200429 vtbackup: vitess/lite:v6.0.20-20200429
I didn't see any log related to the error.
The text was updated successfully, but these errors were encountered:
For default() - make sure to escape columns when necessary
b776fd8
Fixes vitessio#6221 Signed-off-by: Andres Taylor <andres@planetscale.com>
77ce19f
Fixes vitessio#6221 Signed-off-by: Andres Taylor <andres@planetscale.com> Signed-off-by: deepthi <deepthi@planetscale.com>
Successfully merging a pull request may close this issue.
Overview of the Issue
It fails when inserting records with the
DEFAULT
function receiving the column namestatus
.Reproduction Steps
Steps to reproduce this issue:
vschema
:schema
:INSERT INTO user(username, status) VALUES ("Chuck", DEFAULT(`status`))
Operating system and Environment details
Using vitess operator with Kubernetes version 1.15
MariaDB 10.3.22
Running with:
Log Fragments
I didn't see any log related to the error.
The text was updated successfully, but these errors were encountered: