Skip to content

Empty docId list leads to error #18

@codeliner

Description

@codeliner

If I use the AnyOfDocId filter with an empty list, Postgres raises a sql syntax error:

PDOException: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near ")" LINE 3: WHERE id IN()

We should check if the the list is empty and return an empty iterator without performing any query.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions