From: Uwe Schindler <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] c02aa7: feat: use direct wire format -> LocalDate conversi...
Date: Wed, 02 Mar 2022 21:36:21 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/a96639-c02aa7@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: c02aa7725a3c5c71314e0e8c441a72fc97ff83a0
https://github.com/pgjdbc/pgjdbc/commit/c02aa7725a3c5c71314e0e8c441a72fc97ff83a0
Author: Uwe Schindler <uwe@thetaphi.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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] c02aa7: feat: use direct wire format -> LocalDate conversi...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/a96639-c02aa7@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/a96639-c02aa7@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox