Revert "fix an issue with postgres timestamp literals"

This reverts commit 0b021e56f9.
This commit is contained in:
Gavin 2022-11-11 21:30:01 +01:00
parent 0b021e56f9
commit 9073d6192b
1 changed files with 1 additions and 6 deletions

View File

@ -1036,12 +1036,7 @@ public class PostgreSQLDialect extends Dialect {
appender.appendSql( '\'' ); appender.appendSql( '\'' );
break; break;
case TIMESTAMP: case TIMESTAMP:
if ( temporalAccessor.isSupported( ChronoField.OFFSET_SECONDS ) ) {
appender.appendSql( "timestamp with time zone '" ); appender.appendSql( "timestamp with time zone '" );
}
else {
appender.appendSql( "timestamp '" );
}
appendAsTimestampWithMicros( appender, temporalAccessor, supportsTemporalLiteralOffset(), jdbcTimeZone ); appendAsTimestampWithMicros( appender, temporalAccessor, supportsTemporalLiteralOffset(), jdbcTimeZone );
appender.appendSql( '\'' ); appender.appendSql( '\'' );
break; break;