Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upLinter accepts false syntax in view definitions #310
Labels
Comments
|
Hi @aszenz We are lacking contributors and time to fix issues this month on this library, if you feel like opening a pull-request to |
aszenz
added a commit
to aszenz/sql-parser
that referenced
this issue
Aug 23, 2020
The view statement body was not being validated, used existing select statement to ensure that the view definition is correctly linted. Also updated generated parser tests in / out tests.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for this wonderful library.
It seems like the linter doesn't catch any syntax errors for the view definitions.
Running
./vendor/bin/lint-query --query "CREATE VIEW abc AS WRONG_SELECT a, b FROM a"gives back no parsing errors even though the syntax is clearly wrong.Tested on the latest version
5.3, the older4.1version also had the same issue.