mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-26 16:01:45 +00:00
FIX: handle empty collection in "in (...)" queries
This commit is contained in:
committed by
rob bygrave
parent
840cb2ee7b
commit
c0b6f291a1
@@ -202,7 +202,7 @@ public class DefaultExampleExpression implements SpiExpression, ExampleExpressio
|
||||
public void addSql(SpiExpressionRequest request) {
|
||||
|
||||
if (list.isEmpty()) {
|
||||
request.append("1=1");
|
||||
request.append(SQL_TRUE);
|
||||
} else {
|
||||
request.append("(");
|
||||
for (int i = 0; i < list.size(); i++) {
|
||||
|
||||
Reference in New Issue
Block a user