mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-28 10:09:10 +00:00
SPR-15382 Spring Jdbc add Postgresql ?| and ?& operators support
This commit is contained in:
+2
-2
@@ -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