-
-
Notifications
You must be signed in to change notification settings - Fork 540
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
support for :=
operator in SELECT
#4489
Comments
We would like to support this and it's on our roadmap, but we don't have an ETA for when it will become available. In the meantime, you can use this syntax, which does the same thing: set @id = (select id from table limit 1); |
select @id := id from table limit 1
:=
operator in SELECT
Is it like the two PRs I posted in vitess project which only need add some rules in sql.y or there is more work to do in this project? Could you share some instructions to me for achieving this and we can see if I can make it happen. |
It's harder. It's not just syntax, it's got query planner logic too. |
Support for |
We have queries like
select @id := id from table limit 1
. This is basically query some data into a variable. It is fully supported in MySQL, but for this project, when I run the query, I gotERROR 1105 (HY000): syntax error at position 13 near ':'
which means the content:=
is not supported.Is there any plan to support such query?
The text was updated successfully, but these errors were encountered: