| From: | Uwe Schindler <noreply(at)github(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)lists(dot)postgresql(dot)org |
| Subject: | [pgjdbc/pgjdbc] c02aa7: feat: use direct wire format -> LocalDate conversi... |
| Date: | 2022-03-03 05:36:21 |
| Message-ID: | pgjdbc/pgjdbc/push/refs/heads/master/a96639-c02aa7@github.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: c02aa7725a3c5c71314e0e8c441a72fc97ff83a0
https://github.com/pgjdbc/pgjdbc/commit/c02aa7725a3c5c71314e0e8c441a72fc97ff83a0
Author: Uwe Schindler <uwe(at)thetaphi(dot)de>
Date: 2022-03-03 (Thu, 03 Mar 2022)
Changed paths:
M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
M pgjdbc/src/main/java/org/postgresql/jdbc/TimestampUtils.java
M pgjdbc/src/test/java/org/postgresql/test/jdbc42/GetObject310Test.java
Log Message:
-----------
feat: use direct wire format -> LocalDate conversion without resorting to java.util.Date, java.util.Calendar, and default timezones
Both text and binary formats for date and timestamp contain all the information
that is needed to instantialte LocalDate. There's no need to roundtrip with Date and timezones.
Converting database results into LocalDate directly reduces the number of moving parts and it makes
the code easier to follow.
fixes #2221
| From | Date | Subject | |
|---|---|---|---|
| Next Message | TAKATSUKA Haruka | 2022-03-03 08:31:12 | Re: Security Release announcement versions 42.2.25 and 42.3.2 have been released |
| Previous Message | Dave Cramer | 2022-02-28 10:51:56 | Re: 2x slowdown of JDBC driver 42.3.0+ |