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: Issue #2109 true and false value parsed as column instead of BooleanValue #2110

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

lucarota
Copy link
Contributor

Hi all,

this patch addresses Issue #2109 in the JSQLParser library, where TRUE and FALSE were incorrectly handled as column names rather than as boolean values.

According to the SQL standard ISO/IEC 9075:2016, TRUE and FALSE are reserved keywords representing boolean literals, not column identifiers.

This patch updates the parser to recognize TRUE and FALSE as boolean literals, ensuring compliance with the SQL standard and preventing potential errors in query interpretation.

Ciao,
Luca

@manticore-projects
Copy link
Contributor

Very clean, well done! Thank you for your help and contribution!

@manticore-projects manticore-projects merged commit 7acf9d5 into JSQLParser:master Nov 14, 2024
3 checks passed
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.

2 participants