mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-28 03:42:23 -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;
|
break;
|
||||||
case ANY:
|
case ANY:
|
||||||
replacement = not ?
|
replacement = not ?
|
||||||
"(" + inColumnName + " != ANY(?))" :
|
"(NOT(" + inColumnName + " = ANY(?)))" :
|
||||||
"(" + inColumnName + " = ANY(?))";
|
"(" + inColumnName + " = ANY(?))";
|
||||||
break;
|
break;
|
||||||
case UNNEST:
|
case UNNEST:
|
||||||
|
@ -34,7 +34,7 @@ public class ArrayInList implements InList {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected String columnAppendNotIn(final String columnName) {
|
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 {
|
public Array toArray(final Connection conn, final String typeName, final Object[] elements) throws SQLException {
|
||||||
|
Loading…
Reference in New Issue
Block a user