SPR-15382 Spring Jdbc add Postgresql ?| and ?& operators support
This commit is contained in:
@@ -153,8 +153,8 @@ public abstract class NamedParameterUtils {
|
||||
}
|
||||
if (c == '?') {
|
||||
int j = i + 1;
|
||||
if (j < statement.length && statement[j] == '?') {
|
||||
// Postgres-style "??" operator should be skipped
|
||||
if (j < statement.length && (statement[j] == '?' || statement[j] == '|' || statement[j] == '&')) {
|
||||
// Postgres-style "??", "?|", "?&" operator should be skipped
|
||||
i = i + 2;
|
||||
continue;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user