Skip to content

Commit 7b176df

Browse files
committed
HHH-18604 Fix some issues with older database versions
1 parent 5b602bd commit 7b176df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/function/json/PostgreSQLJsonArrayAppendFunction.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public void render(
4242
sqlAppender.appendSql( "jsonb_set_lax" );
4343
}
4444
else {
45-
sqlAppender.appendSql( "case when t.d#>t.p is not null then jsonb_set" );
45+
sqlAppender.appendSql( "case when (t.d)#>t.p is not null then jsonb_set" );
4646
}
4747
sqlAppender.appendSql( "(t.d,t.p,(t.d)#>t.p||" );
4848
if ( value instanceof Literal && ( (Literal) value ).getLiteralValue() == null ) {

0 commit comments

Comments
 (0)