pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Philippe Marschall <pm@netcetera.ch>
To: pgsql-jdbc@lists.postgresql.org
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Mark Rotteveel <mark@lawinegevaar.nl>
Subject: Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type
Date: Wed, 17 Apr 2019 14:03:39 +0200
Message-ID: <49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.com> (raw)
In-Reply-To: <CADK3HH+Z6M+sf_U6mfmuL+o1ZDhJKvaMMnBej2WC4HqSk5yQtw@mail.gmail.com>
References: <q89m8j$63i8$1@blaine.gmane.org>
	<f42cc628-83c9-d009-707a-347126539b2d@lawinegevaar.nl>
	<716bbd9d-7708-f73b-7b49-641cc9e2790b@gmx.net>
	<bd979527-35f6-c9cb-74c5-3334a407fedb@netcetera.com>
	<4abc4f90-f704-203b-5da1-215eaf4cf252@lawinegevaar.nl>
	<CADK3HH+Z6M+sf_U6mfmuL+o1ZDhJKvaMMnBej2WC4HqSk5yQtw@mail.gmail.com>

On 16.04.19 02:20, Dave Cramer wrote:
> 
> 
> The whole time, timestamp, timezone thing was not well thought out and 
> is the bane of all driver implementers existence...


Pre JDBC 4.2 and java.sql types I agree.

JDBC 4.2+ and java.time types I disagree. Issues with JDBC 4.2+ and 
java.time types start when:

- people want backwards compatibility with bugs in java.sql
- support is implemented in terms of java.sql
- people want to support other java.time types besides the direct 1:1 
mappings

If you stay away from these then everything is really easy.

Cheers
Philippe






view thread (15+ messages)  latest in thread

Message-ID: <49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.com>
Permalink:  ../49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.com/
Also on:    postgresql.org/message-id/49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.com

 · 

reply

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: pm@netcetera.ch, pg@fastcrypt.com, mark@lawinegevaar.nl
  Subject: Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type
  In-Reply-To: <49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.com>
  References: <q89m8j$63i8$1@blaine.gmane.org> <f42cc628-83c9-d009-707a-347126539b2d@lawinegevaar.nl> <716bbd9d-7708-f73b-7b49-641cc9e2790b@gmx.net> <bd979527-35f6-c9cb-74c5-3334a407fedb@netcetera.com> <4abc4f90-f704-203b-5da1-215eaf4cf252@lawinegevaar.nl> <CADK3HH+Z6M+sf_U6mfmuL+o1ZDhJKvaMMnBej2WC4HqSk5yQtw@mail.gmail.com> <49e99d98-679e-ab0c-92e5-15fff9e63257@netcetera.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