#1253 - Query where many isNotEmpty() ... on ManyToMany with SoftDelete produces incorrect SQL

Fix
This commit is contained in:
Rob Bygrave
2018-02-09 15:00:58 +13:00
parent caa36262c1
commit abcc651e7f
3 changed files with 29 additions and 6 deletions
@@ -609,7 +609,7 @@ class CQueryBuilder {
if (!hasWhere) {
sb.append(" where ");
} else {
sb.append("and ");
sb.append(" and ");
}
for (int i = 0; i < softDeletePredicates.size(); i++) {
if (i > 0) {