We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 231163f commit a3c2dfaCopy full SHA for a3c2dfa
hibernate-core/src/main/java/org/hibernate/query/sql/internal/NativeQueryImpl.java
@@ -969,15 +969,15 @@ private boolean isEnclosedInParens(int sourcePosition) {
969
for ( int i = sourcePosition - 1; i >= 0; i-- ) {
970
final char ch = sqlString.charAt( i );
971
if ( !isWhitespace( ch ) ) {
972
- isEnclosedInParens = ch == '(';
+ isEnclosedInParens = ch == '(' || ch == ',';
973
break;
974
}
975
976
if ( isEnclosedInParens ) {
977
for ( int i = sourcePosition + 1; i < sqlString.length(); i++ ) {
978
979
980
- isEnclosedInParens = ch == ')';
+ isEnclosedInParens = ch == ')' || ch == ',';
981
982
983
0 commit comments