Throws a mysql exception since the sql translates to where id in (). After searching around, I found this stackoverflow post which suggests using IN (null) since even null == null is always false.
Would be easy to just test for this case in $binder->reduce. I can make a PR, but wanted to make sure you guys aren't already dealing with this through a different method.
Currently:
Throws a mysql exception since the sql translates to
where id in ()
. After searching around, I found this stackoverflow post which suggests usingIN (null)
since evennull == null
is always false.Would be easy to just test for this case in
$binder->reduce
. I can make a PR, but wanted to make sure you guys aren't already dealing with this through a different method.