mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
FIX: subquery could not not have a where clause
This commit is contained in:
1 parent
4aef0ad459
commit
4cebb367de
3 files changed
+26
-3
No files matched your search
@@ -22,6 +22,7 @@ import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
@@ -411,7 +412,7 @@ public class CQueryPredicates {
|
||||
* Return the bind values for the where expression.
|
||||
*/
|
||||
public List<Object> getWhereExprBindValues() {
|
||||
return where.getBindValues();
|
||||
return where == null ? Collections.emptyList() : where.getBindValues();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user