C2FO / patio

Idiomatic database toolkit

Home Page:http://c2fo.github.io/patio

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

andymoon opened this issue · comments

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();