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

Handle comments in FromBuilder #379

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

stollr
Copy link

@stollr stollr commented Dec 23, 2023

The following SQL query could be parsed:

SELECT * FROM car /* test comment */ WHERE color = 'black'

but the creator was not able to generate a SQL query from the parsed tree. An UnableToCreateSQLException with the message unknown [expr_type] = comment in "FROM" [0] was thrown in src/PHPSQLParser/builders/FromBuilder.php in line 103.

Previously a PHPSQLParser\exceptions\UnableToCreateSQLException with the message 'unknown [expr_type] = comment in "FROM" [0]' was thrown in src/PHPSQLParser/builders/FromBuilder.php in line 103
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.

1 participant