From 3438d1c966e9e2a61c2a368157c0667879c721c4 Mon Sep 17 00:00:00 2001 From: Gavin Date: Mon, 20 Feb 2023 16:39:45 +0100 Subject: [PATCH] fix mistake in Oracle timestamp rendering we need to include the time zone --- .../src/main/java/org/hibernate/dialect/OracleDialect.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java index 4207317290..5b5aa96f1f 100644 --- a/hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java +++ b/hibernate-core/src/main/java/org/hibernate/dialect/OracleDialect.java @@ -1257,7 +1257,7 @@ public class OracleDialect extends Dialect { // offset we need to use the ANSI syntax if ( precision == TemporalType.TIMESTAMP && temporalAccessor.isSupported( ChronoField.OFFSET_SECONDS ) ) { appender.appendSql( "timestamp '" ); - appendAsTimestampWithNanos( appender, temporalAccessor, supportsTemporalLiteralOffset(), jdbcTimeZone ); + appendAsTimestampWithNanos( appender, temporalAccessor, true, jdbcTimeZone, false ); appender.appendSql( '\'' ); } else {