We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using python 3.9 and sqlvalidator==0.0.18
When running sqlvalidator.parse(query).is_valid() i'm getting
sqlvalidator.parse(query).is_valid()
def _validate(self): self.validated = True try: > self.errors = self.sql_query.validate() E TypeError: validate() missing 1 required positional argument: 'known_fields'
The class of self.sql_query is WithStatement
The text was updated successfully, but these errors were encountered:
Hey @timotta
Thanks for opening an issue.
What's the content of the query variable? :) So that I can reproduce the issue
query
Sorry, something went wrong.
I am getting similar issue. When I am validating the query using WITH to create an alias, then it is giving this error
I get this error when attempting to use WITH AS as well.
Example
with cte as (select * from a) select * from cte
I get this error too when I try to validate a query using WITH.
No branches or pull requests
Using python 3.9 and sqlvalidator==0.0.18
When running
sqlvalidator.parse(query).is_valid()
i'm gettingThe class of self.sql_query is WithStatement
The text was updated successfully, but these errors were encountered: