#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

@@ -170,7 +170,7 @@ public final class IdBinderEmbedded implements IdBinder {
throw new IndexOutOfBoundsException("The size must be at least 1");
}
if (!idInExpandedForm) {
return getIdInValueExpr(size);
return getIdInValueExpr(false, size);
}
StringBuilder sb = new StringBuilder();
@@ -195,12 +195,14 @@ public final class IdBinderEmbedded implements IdBinder {
}
@Override
public String getIdInValueExpr(int size) {
public String getIdInValueExpr(boolean not, int size) {
if (size <= 0) {
throw new IndexOutOfBoundsException("The size must be at least 1");
}
StringBuilder sb = new StringBuilder();
if (not) {
sb.append(" not");
}
if (!idInExpandedForm) {
sb.append(" in");
}