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

Tolerate selecting MySQL system variables #109

Merged

Conversation

brandonpayton
Copy link
Member

@brandonpayton brandonpayton commented Apr 30, 2024

The purpose of this PR is to add more support for selecting MySQL system variables. Fixes #104.

Related to:
WordPress/wordpress-playground#1272 - "UpdraftPlus plugins doesn't fully work in Playground."

We'll start with failing tests for the set used by the UpdraftPlus plugin, but the ideal is to support as many MySQL variables as possible so there are no conflicts when using SQLite (and WordPress Playground).

@brandonpayton brandonpayton force-pushed the add-initial-support-for-selecting-system-variables branch from c89b57c to 21b0ad2 Compare April 30, 2024 22:01
@brandonpayton
Copy link
Member Author

For a first pass, I am currently considering expanding this existing hack to replace queries for these variables with dummy SELECTs.

Doing this does appear to address the original error report here:
WordPress/wordpress-playground#1272

After that, in order to properly support these variables, we should review the list of all variables and decide which make sense to support and which make sense to replace with dummy GETs and SETs.

cc @adamziel

@brandonpayton brandonpayton changed the title Broaden support for selecting MySQL system variables Tolerate selecting MySQL system variables May 1, 2024
@brandonpayton brandonpayton merged commit f237134 into main May 1, 2024
9 checks passed
@brandonpayton brandonpayton deleted the add-initial-support-for-selecting-system-variables branch May 1, 2024 21:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Variable references like @@GLOBAL.sql_mode cause syntax errors
1 participant