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

Isnot valid cases #30

Open
satels opened this issue Sep 20, 2021 · 0 comments
Open

Isnot valid cases #30

satels opened this issue Sep 20, 2021 · 0 comments

Comments

@satels
Copy link

satels commented Sep 20, 2021

>>> import sqlvalidator
>>> sql_query = sqlvalidator.parse("is_hidden is True and (is_active is True or is_zs is True)")
>>> sql_query.is_valid()
False
>>> sql_query.errors
['']
>>> sql_query = sqlvalidator.parse("select * from b where is_hidden is True and (is_active is True or is_zs is True)")
>>> sql_query.is_valid()
True
>>> sql_query.errors
[]
>>> sql_query = sqlvalidator.parse("select * from b where is_hidden is True and (is_active is True or is_zs is True)r-")
>>> sql_query.is_valid()
True
>>> sql_query.errors
[]
>>> sql_query = sqlvalidator.parse("select * from b where is_hidden is True and (is_active is True or is_zs is True)r-33fds/")
>>> sql_query.errors
[]
>>> sql_query.is_valid()
True
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

1 participant