[#4131] Regression when using PostgreSQL cast operator ::

This commit is contained in:
lukaseder 2016-03-11 14:57:49 +01:00
parent 2b71aad205
commit 57dfdbc51d

View File

@ -1592,7 +1592,10 @@ final class Tools {
((sqlChars[i] == '?')
// [#4131] Named bind variables of the form :identifier
|| (sqlChars[i] == ':' && i + 1 < sqlChars.length && isJavaIdentifierPart(sqlChars[i + 1])))) {
// Watch out for the PostgreSQL cast operator ::
|| (sqlChars[i] == ':'
&& i + 1 < sqlChars.length && isJavaIdentifierPart(sqlChars[i + 1])
&&(i - 1 < 0 || sqlChars[i - 1] != ':')))) {
// [#4131] Consume the named bind variable
if (sqlChars[i] == ':')