#222 - SQL Server - OnetoMany with compound key using IN is not legal in mssql

This commit is contained in:
rbygrave committed 2014-12-17 00:53:42 +13:00
1 parent 965de6e84d
commit d54cffacea
6 files changed
+41 -38

No files matched your search

@@ -278,9 +278,7 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> {
query.setIncludeTableJoin(inverseJoin);
}
String rawWhere = deriveWhereParentIdSql(true, tableAlias);
String inClause = descriptor.getIdBinder().getIdInValueExpr(parentIds.size());
String expr = rawWhere + inClause;
String expr = descriptor.getParentIdInExpr(parentIds.size(), rawWhere);
// Flatten the bind values if needed (embeddedId)
List<Object> bindValues = getBindParentIds(parentIds);