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

Fix Query Generator IS NULL / IS NOT NULL #19163

Open
wants to merge 3 commits into
base: QA_5_2
Choose a base branch
from

Conversation

faissaloux
Copy link
Contributor

@faissaloux faissaloux commented May 14, 2024

Hellooo πŸ‘‹πŸ»

In this PR I fixed the bug in the Query Generator that generates a non-valid query when using IS NULL and IS NOT NULL.

Before

As you can see it adds the criteria string before IS NULL which is empty in this case (Same thing for IS NOT NULL).
Which is not a valid query. ❌

Screenshot from 2024-05-14 21-07-52

After

Valid βœ…
Screenshot from 2024-05-14 21-10-06

Hide criteria when the op doesn't need it.

Screencast.from.14-05-24.21.53.10.webm

Server configuration

  • phpMyAdmin version: 5.2.2-dev, 6.0.0-dev

Signed-off-by: faissaloux <fwahabali@gmail.com>
@faissaloux faissaloux force-pushed the fix-query-generator-is-null branch from 7f7a0c8 to 2590313 Compare May 14, 2024 20:12
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

Successfully merging this pull request may close these issues.

None yet

1 participant