Skip to content
This repository has been archived by the owner on Dec 20, 2023. It is now read-only.

If you pass an empty array into a filter it causes an error. #63

Open
andymoon opened this issue Dec 17, 2012 · 0 comments
Open

If you pass an empty array into a filter it causes an error. #63

andymoon opened this issue Dec 17, 2012 · 0 comments
Labels

Comments

@andymoon
Copy link
Member

It creates an sql clause like the following

"1" = 1

The column was a text data type.

i.e.

SomeModel
    .filter({someColumn: {notIn: []}})
    .all();

//also 

SomeModel
     .exclude({someColumn: []})
     .all();
@vikeen vikeen added the bug label Jun 19, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants