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

Error when table is empty #38

Open
jnar opened this issue Feb 12, 2017 · 2 comments
Open

Error when table is empty #38

jnar opened this issue Feb 12, 2017 · 2 comments

Comments

@jnar
Copy link

jnar commented Feb 12, 2017

Hi, first of all thanks for sharing this nice library works great. How do I prevent this error when table has no records?

Error Number:

ERROR: syntax error near «)» LINE 3: WHERE () IS NULL ^
SELECT s.id FROM "items" "s" WHERE () IS NULL
Filename: D:/www/myapp/system/database/DB_driver.php

Line Number: 691

@josefig
Copy link

josefig commented Feb 24, 2017

Could you provide a gist or a paste with the sample code? I had a similar problem and wasn't the table was a problem on syntax.

@leandroruel
Copy link

something is wrong, "where () is null" ? what is "()"?

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

3 participants