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

Can't set user defined variable to non-trivial expressions #6915

Closed
systay opened this issue Oct 20, 2020 · 0 comments · Fixed by #6964
Closed

Can't set user defined variable to non-trivial expressions #6915

systay opened this issue Oct 20, 2020 · 0 comments · Fixed by #6964
Assignees

Comments

@systay
Copy link
Collaborator

systay commented Oct 20, 2020

mysql> set @foo = now();
ERROR 1235 (HY000): vtgate: http://andress-mbp:17825/: expression not supported for SET: now()
mysql> set @@sql_mode = now();
Query OK, 0 rows affected (0.02 sec)

We should use the same logic for user defined variables as we do for system variables, which is to delegate to the tablet to evaluate these expressions.

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

Successfully merging a pull request may close this issue.

3 participants