#1186 - ENH: Support using TableValues / Array for select prop in (?) queries

Use Postgres Array ANY and ALL without select unnest
This commit is contained in:
rob bygrave committed 2017-10-31 22:09:35 +13:00
1 parent 5bccdccbd6
commit 1e1c518641
34 files changed
+157 -117

No files matched your search

@@ -229,9 +229,9 @@ public class Binder {
/**
* Return the SQL in clause taking into account Multi-value support.
*/
public String getInExpression(Object[] bindValues) {
public String getInExpression(boolean not, Object[] bindValues) {
ScalarType<?> type = getScalarType(bindValues[0].getClass());
return multiValueBind.getInExpression(type, bindValues.length);
return multiValueBind.getInExpression(not, type, bindValues.length);
}
/**