Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
1.38.0
-
None
-
None
Description
The following unit test will fail if added to PostgresqlDateTimeFormatterTest
@Test void testLiteral() throws Exception { final ZonedDateTime time = createDateTime(2024, 1, 1, 0, 0, 0, 0); assertThat(toTimestamp("2024-01-01 00:00:00" , "YYYY-MM-DD HH24:MI:SS"), is(time)); assertThat(toTimestamp("2024-01-01T00:00:00" , "YYYY-MM-DD\"T\"HH24:MI:SS"), is(time)); }
According to the documentation postgres supports literals in format strings enclosed in double quotes.