Skip to content
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

Session variable does not work as expected in 7.0 #6559

Closed
1d2u3c opened this issue Aug 12, 2020 · 2 comments
Closed

Session variable does not work as expected in 7.0 #6559

1d2u3c opened this issue Aug 12, 2020 · 2 comments
Assignees
Milestone

Comments

@1d2u3c
Copy link

1d2u3c commented Aug 12, 2020

mysql> update User set State=(@A := 2) where UserID = 134;
ERROR 1105 (HY000): vtgate: http://ourtest:15001/: syntax error at position 28 near ':'

@1d2u3c
Copy link
Author

1d2u3c commented Aug 17, 2020

The problem appears to be that the Vitess parser isn't recognizing the := syntax. Possibly related to this line of code: https://github.com/vitessio/vitess/blob/master/go/vt/sqlparser/token.go#L546

Also here:
https://github.com/vitessio/vitess/blob/master/go/vt/sqlparser/sql.y

@systay systay self-assigned this Aug 18, 2020
@1d2u3c
Copy link
Author

1d2u3c commented Aug 18, 2020

According to discussion of this issue on Vitess Slack with the devs, the assignment operator is not supported. Closing this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants