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

the scope in error message is wrong #30509

Closed
morgo opened this issue Dec 8, 2021 · 1 comment · Fixed by #30510
Closed

the scope in error message is wrong #30509

morgo opened this issue Dec 8, 2021 · 1 comment · Fixed by #30510
Assignees
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.

Comments

@morgo
Copy link
Contributor

morgo commented Dec 8, 2021

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

select @@session.max_connections;
select @@global.last_insert_id;

2. What did you expect to see? (Required)

tidb> select @@session.max_connections;
ERROR 1238 (HY000): Variable 'max_connections' is a GLOBAL variable
tidb> select @@global.last_insert_id;
ERROR 1238 (HY000): Variable 'last_insert_id' is a SESSION variable

3. What did you see instead (Required)

tidb> select @@session.max_connections;
ERROR 1238 (HY000): Variable 'max_connections' is a SESSION variable
tidb> select @@global.last_insert_id;
ERROR 1238 (HY000): Variable 'last_insert_id' is a GLOBAL variable

4. What is your TiDB version? (Required)

master

@morgo morgo added the type/bug The issue is confirmed as a bug. label Dec 8, 2021
@morgo morgo self-assigned this Dec 8, 2021
@github-actions
Copy link

github-actions bot commented Dec 8, 2021

Please check whether the issue should be labeled with 'affects-x.y' or 'fixes-x.y.z', and then remove 'needs-more-info' label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/major sig/sql-infra SIG: SQL Infra type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants