Skip to content

Error when table is empty #38

Description

@jnar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions