From 29b00d6754ddb981efa5a3910ed291945bbb0af1 Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Wed, 20 Nov 2024 19:30:44 +0100 Subject: [PATCH] Fix issue with unnest rendering for old PostgreSQL and EDB versions --- .../dialect/function/array/PostgreSQLUnnestFunction.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/function/array/PostgreSQLUnnestFunction.java b/hibernate-core/src/main/java/org/hibernate/dialect/function/array/PostgreSQLUnnestFunction.java index 0b11cda338..bc926434ad 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/function/array/PostgreSQLUnnestFunction.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/function/array/PostgreSQLUnnestFunction.java @@ -57,7 +57,7 @@ public class PostgreSQLUnnestFunction extends UnnestFunction { selectableMapping ) ); } - sqlAppender.append( ' ' ); + sqlAppender.append( " as " ); sqlAppender.append( selectableMapping.getSelectionExpression() ); } ); sqlAppender.appendSql( " from jsonb_array_elements(" );