Skip to content

IN with empty array fails #274

@dirkmc

Description

@dirkmc

eg:

Post.find({ channel_id: [] }

This generates SQL like the following, which fails:

select * from posts where channel_id in ();

This is probably not unreasonable behaviour, but it would be nice if orm detected an empty array and omitted that clause from the WHERE

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions