Fix not in ANY bind lists

This commit is contained in:
Travis Burtrum 2018-05-23 00:45:22 -04:00
parent 81b91d43e8
commit 3f45785865
2 changed files with 2 additions and 2 deletions

View File

@ -415,7 +415,7 @@ public class JdbcMapperProcessor extends AbstractProcessor {
break;
case ANY:
replacement = not ?
"(" + inColumnName + " != ANY(?))" :
"(NOT(" + inColumnName + " = ANY(?)))" :
"(" + inColumnName + " = ANY(?))";
break;
case UNNEST:

View File

@ -34,7 +34,7 @@ public class ArrayInList implements InList {
}
protected String columnAppendNotIn(final String columnName) {
return "(" + columnName + " != ANY(?))";
return "(NOT(" + columnName + " = ANY(?)))";
}
public Array toArray(final Connection conn, final String typeName, final Object[] elements) throws SQLException {