Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support local date times not in time zone
Local date time support introduced in #474 has subtle edge cases. These occur when trying to read a LocalDateTime that does not exist in the VM default time zone because it falls in a "not existing" time during a daylight saving time offset transition. For LocalDateTime instances this should not be an issue since they are explicitly not associated with a time zone. This commit tests all time zones and timestamps from TimezoneTest except 2015-06-30T23:59:60, this is only valid with a time zone in order to know whether it is actually a leap second. Fix local date time edge cases introduced by #474. Closes #493
- Loading branch information
Showing
5 changed files
with
215 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
pgjdbc/src/test/java/org/postgresql/test/jdbc42/GetObject310BinaryTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.postgresql.test.jdbc42; | ||
|
||
import java.util.Properties; | ||
|
||
public class GetObject310BinaryTest extends GetObject310Test { | ||
|
||
public GetObject310BinaryTest(String name) { | ||
super(name); | ||
} | ||
|
||
@Override | ||
protected void updateProperties(Properties props) { | ||
forceBinary(props); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters