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 tidb_allow_auto_random_explicit_insert as a global variable #18895

Closed
kolbe opened this issue Jul 31, 2020 · 1 comment · Fixed by #18896
Closed

Support tidb_allow_auto_random_explicit_insert as a global variable #18895

kolbe opened this issue Jul 31, 2020 · 1 comment · Fixed by #18896
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.

Comments

@kolbe
Copy link
Contributor

kolbe commented Jul 31, 2020

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

mysql> set global allow_auto_random_explicit_insert=on;
ERROR 1105 (HY000): Variable 'allow_auto_random_explicit_insert' is a SESSION variable and can't be used with SET GLOBAL

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

It should be possible to set allow_auto_random_explicit_insert as a global variable. The rationale for disallowing this in #17102 (comment) was that a global variable couldn't meet the need of some specific use case, but the rationale was flawed. A variable that can be set globally can also be set on a per-session basis.

3. What did you see instead (Required)

4. Affected version (Required)

v4.0.3

5. Root Cause Analysis

@glorv
Copy link
Contributor

glorv commented Jul 31, 2020

/label component/executor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity/moderate sig/execution SIG execution type/bug The issue is confirmed as a bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants