Skip to content

Commit 9073d61

Browse files
committed
Revert "fix an issue with postgres timestamp literals"
This reverts commit 0b021e5.
1 parent 0b021e5 commit 9073d61

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,12 +1036,7 @@ public void appendDateTimeLiteral(
10361036
appender.appendSql( '\'' );
10371037
break;
10381038
case TIMESTAMP:
1039-
if ( temporalAccessor.isSupported( ChronoField.OFFSET_SECONDS ) ) {
1040-
appender.appendSql( "timestamp with time zone '" );
1041-
}
1042-
else {
1043-
appender.appendSql( "timestamp '" );
1044-
}
1039+
appender.appendSql( "timestamp with time zone '" );
10451040
appendAsTimestampWithMicros( appender, temporalAccessor, supportsTemporalLiteralOffset(), jdbcTimeZone );
10461041
appender.appendSql( '\'' );
10471042
break;

0 commit comments

Comments
 (0)