HHH-18604 Fix some issues with older database versions

This commit is contained in:
Christian Beikov 2024-10-04 10:46:52 +02:00
parent 5b602bdf94
commit 7b176df6b7
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ public class PostgreSQLJsonArrayAppendFunction extends AbstractJsonArrayAppendFu
sqlAppender.appendSql( "jsonb_set_lax" );
}
else {
sqlAppender.appendSql( "case when t.d#>t.p is not null then jsonb_set" );
sqlAppender.appendSql( "case when (t.d)#>t.p is not null then jsonb_set" );
}
sqlAppender.appendSql( "(t.d,t.p,(t.d)#>t.p||" );
if ( value instanceof Literal && ( (Literal) value ).getLiteralValue() == null ) {