Skip to content

Error when table is empty #38

@jnar

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

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