Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add support for empty values set with IN predicate #223
(Original PR #196)
It should be possible to construct a IN predicate with empty values set.
$select->where('mycolumn IN ?', );
Of course this code will most likely never be written as is but the content of the set can instead be the result of a calculation.
It's not possible with the current code because of the
Empty sets are supported by some DBMS (SQLite for example) and in that case are the equivalent of
@ezimuel Not with versions of PHP < 5.6. My code is here to avoid a warning with those older versions of PHP.