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

I cannot make a query with "where ..... like....." #2

Open
vasi26ro opened this issue Oct 29, 2018 · 0 comments
Open

I cannot make a query with "where ..... like....." #2

vasi26ro opened this issue Oct 29, 2018 · 0 comments

Comments

@vasi26ro
Copy link

Hello,

Your library is awesome thank you for sharing it.

I'm trying to read some data from a table

db.query('select * where category like \"WATER\"')

and I receive this error:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python27\lib\site-packages\dbf\__init__.py", line 5962, in query
return pql(self, criteria)
File "C:\Python27\lib\site-packages\dbf\__init__.py", line 8183, in pql
condition = pql_criteria(records, condition)
File "C:\Python27\lib\site-packages\dbf\__init__.py", line 8128, in pql_criteria
execute(function, g)
File "<string>", line 5, in execute
File "<string>", line 8
if categoria like "WATER":
^
`SyntaxError: invalid syntax``

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