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

Use consistent approach when try to query super-read-only #12186

Open
rsajwani opened this issue Jan 30, 2023 · 1 comment
Open

Use consistent approach when try to query super-read-only #12186

rsajwani opened this issue Jan 30, 2023 · 1 comment

Comments

@rsajwani
Copy link
Contributor

rsajwani commented Jan 30, 2023

We have been using two approaches while querying for super-read-only in our code base.

1- SELECT @@global.super_read_only
2- SHOW VARIABLES LIKE 'super_read_only'

Same for read-only attribute
1- SELECT @@global.read_only
2- SHOW VARIABLES LIKE 'read_only'

i think we should be consistent in our approach. The option#1 looks better.. .

@deepthi deepthi changed the title make consistent approach when try to query super-read-only Use consistent approach when try to query super-read-only Jan 30, 2023
@deepthi
Copy link
Member

deepthi commented Jan 30, 2023

Just a note that everything should be going through the flavor interface as well. I hope we are not hardcoding either of these two usages in random places.

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

No branches or pull requests

2 participants