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

cannot select session scope ScopeNone variable #19524

Closed
SunRunAway opened this issue Aug 27, 2020 · 2 comments · Fixed by #19584
Closed

cannot select session scope ScopeNone variable #19524

SunRunAway opened this issue Aug 27, 2020 · 2 comments · Fixed by #19584
Labels
component/executor good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/major type/bug The issue is confirmed as a bug.

Comments

@SunRunAway
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> select @@global.explicit_defaults_for_timestamp;
+------------------------------------------+
| @@global.explicit_defaults_for_timestamp |
+------------------------------------------+
| 1                                        |
+------------------------------------------+
1 row in set (0.00 sec)

mysql> select @@session.explicit_defaults_for_timestamp;
ERROR 1238 (HY000): Variable 'explicit_defaults_for_timestamp' is a GLOBAL variable

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

mysql> select @@global.explicit_defaults_for_timestamp;
+------------------------------------------+
| @@global.explicit_defaults_for_timestamp |
+------------------------------------------+
|                                        1 |
+------------------------------------------+
1 row in set (0.00 sec)

mysql> select @@session.explicit_defaults_for_timestamp;
+-------------------------------------------+
| @@session.explicit_defaults_for_timestamp |
+-------------------------------------------+
|                                         1 |
+-------------------------------------------+
1 row in set (0.00 sec)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

@SunRunAway SunRunAway added type/bug The issue is confirmed as a bug. good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. component/executor labels Aug 27, 2020
@Patrick0308
Copy link
Contributor

Let me fix it.

@sre-bot
Copy link
Contributor

sre-bot commented Sep 14, 2020

Integrity check:
component RCA symptom affect_version fix_version fields are empty
@Patrick0308
Please comment /info to get template

@pingcap pingcap deleted a comment from sre-bot Sep 14, 2020
@pingcap pingcap deleted a comment from sre-bot Sep 15, 2020
@pingcap pingcap deleted a comment from sre-bot Sep 15, 2020
@pingcap pingcap deleted a comment from sre-bot Sep 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/executor good first issue Denotes an issue ready for a new contributor, according to the "help wanted" guidelines. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. severity/major type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants