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

Support mysql variable select stmt #910

Open
jd-zhang opened this issue Jul 8, 2022 · 2 comments
Open

Support mysql variable select stmt #910

jd-zhang opened this issue Jul 8, 2022 · 2 comments

Comments

@jd-zhang
Copy link
Contributor

jd-zhang commented Jul 8, 2022

*Issue migrated from trac ticket # 885 www.kunlunbase.com *

component: computing nodes | priority: major

2022-07-08 11:16:45: zhaowei@zettadb.com created the issue


we have already supported syntax to access variables in kunlun-storage, as described here: http://www.kunlunbase.com:8181/docs/b/b-1dnbk6om8uuha

The only thing left unsupported yet is this grammar:
SELECT @@session.var1 [[, @@global.var2],...];

This is needed for rust mysql client library to connect to Kunlun-server nodes, so we need to support it.

We do not support fetching such variables in the generic SELECT syntax as mysql, e.g. we don't support this syntax:

select @@session.autocommit, @@global.read_only, a from t1;

@jd-zhang
Copy link
Contributor Author

jd-zhang commented Jul 8, 2022

2022-07-08 21:15:01: zhaowei@zettadb.com changed owner from david to kunlun

@jd-zhang
Copy link
Contributor Author

jd-zhang commented Jul 8, 2022

2022-07-08 21:15:01: zhaowei@zettadb.com changed status from assigned to accepted

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

No branches or pull requests

1 participant