Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Fix where 0#560

Merged
MauricioFauth merged 2 commits intophpmyadmin:5.10.xphpmyadmin/sql-parser:5.10.xfrom
MoonE:fix-where-0MoonE/sql-parser:fix-where-0Copy head branch name to clipboard
Jun 1, 2024
Merged

Fix where 0#560
MauricioFauth merged 2 commits intophpmyadmin:5.10.xphpmyadmin/sql-parser:5.10.xfrom
MoonE:fix-where-0MoonE/sql-parser:fix-where-0Copy head branch name to clipboard

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
@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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.