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 where 0 #560

Merged
merged 2 commits into from
Jun 1, 2024
Merged

Fix where 0 #560

merged 2 commits into from
Jun 1, 2024

Conversation

MoonE
Copy link
Contributor

@MoonE MoonE commented May 31, 2024

If a part of a condition is 0 it was not parsed correctly

MoonE added 2 commits May 31, 2024 21:44
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
Signed-off-by: Maximilian Krög <maxi_kroeg@web.de>
Copy link
Contributor

@kamil-tekiela kamil-tekiela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! There is no way for this variable to be anything other than a string at this point.

@MauricioFauth MauricioFauth changed the base branch from 5.9.x to 5.10.x June 1, 2024 02:29
@MauricioFauth MauricioFauth merged commit 06b5a52 into phpmyadmin:5.10.x Jun 1, 2024
11 of 17 checks passed
@MauricioFauth MauricioFauth added this to the 5.10.0 milestone Jun 1, 2024
@MauricioFauth MauricioFauth self-assigned this Jun 1, 2024
@MoonE MoonE deleted the fix-where-0 branch June 1, 2024 09:56
@williamdes williamdes added the bug label Jun 3, 2024
MauricioFauth added a commit to phpmyadmin/phpmyadmin that referenced this pull request Jun 16, 2024
Fixes #19187

Depends on phpmyadmin/sql-parser#560 to work
without regression in the case of a condition `0` because now the
query is parsed and built again to remove comments.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants