FIX: handle empty collection in "in (...)" queries

This commit is contained in:
Roland Praml
2020-02-01 13:06:37 +13:00
committed by rob bygrave
parent 840cb2ee7b
commit c0b6f291a1
6 changed files with 12 additions and 8 deletions
@@ -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++) {