Open iGrog opened 6 months ago
Hi. What do you expect from ORM in case of passing an empty list?
Hi, maybe not to generate AND xxx.ProductGuid IN()
at all?
Hi, maybe not to generate
AND xxx.ProductGuid IN()
at all?
or generate FALSE
instead? because the IN
operator is used to define a white list. And if the list is empty it equals to FALSE
Yet another option -- generate xxx.ProductGuid is null
. Wny not?
The values list has no values. Shouldn't we check that field has no value too? :)
No duplicates 🥲.
Database
MySQL
What happened?
Continue of #145
with empty array
$productGuids
resulting the following sql:and database error is raised, as there is nothing in
IN
Version