mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-24 10:02:14 -05:00
Fix not in ANY bind lists
This commit is contained in:
parent
81b91d43e8
commit
3f45785865
@ -415,7 +415,7 @@ public class JdbcMapperProcessor extends AbstractProcessor {
|
||||
break;
|
||||
case ANY:
|
||||
replacement = not ?
|
||||
"(" + inColumnName + " != ANY(?))" :
|
||||
"(NOT(" + inColumnName + " = ANY(?)))" :
|
||||
"(" + inColumnName + " = ANY(?))";
|
||||
break;
|
||||
case UNNEST:
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user