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

[BUG] JSQLParser 5.0: Generic: Update with true as value is parsed as column #2109

Closed
lucarota opened this issue Nov 13, 2024 · 1 comment
Closed

Comments

@lucarota
Copy link
Contributor

Failing SQL Feature:

When updating a Boolean column, the value true is parsed as column.

SQL Example:

UPDATE TestTable SET Column1 = 'Tester', Column2 = true WHERE Id = 'AAS'    

Column1 and Column2 are parsed as a Column object.
Tester is parsed as a StringValue
true is parsed as Column object. Why? I expect it to be parsed as BooleanValue or something else value object.

Statement queryData = CCJSqlParserUtil.parse("UPDATE TestTable SET Column1 = 'Tester', Column2 = true WHERE Id = 'AAS'");

image

Software Information:

  • JSqlParser version 5.0 (same problem with the snapshot)
lucarota pushed a commit to lucarota/JSqlParser that referenced this issue Nov 14, 2024
lucarota pushed a commit to lucarota/JSqlParser that referenced this issue Nov 14, 2024
manticore-projects pushed a commit that referenced this issue Nov 14, 2024
@manticore-projects
Copy link
Contributor

Solved via #2110

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

No branches or pull requests

2 participants