SPR-15382 Spring Jdbc add Postgresql ?| and ?& operators support

This commit is contained in:
arturgspb
2017-03-27 11:46:55 +03:00
parent b4530e19fc
commit 8db8c85b69
2 changed files with 22 additions and 2 deletions

View File

@@ -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;
}