Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type

From: Philippe Marschall <philippe(dot)marschall(at)netcetera(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Cc: Dave Cramer <pg(at)fastcrypt(dot)com>, Mark Rotteveel <mark(at)lawinegevaar(dot)nl>
Subject: Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type
Date: 2019-04-17 12:00:25
Message-ID: a5633816-2440-5716-977a-f0364d9ecb07@netcetera.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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 and the direct 1:1 mappings

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

Cheers
Philippe

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Philippe Marschall 2019-04-17 12:03:39 Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type
Previous Message Mark Rotteveel 2019-04-16 16:46:58 Re: ResultSet.getObject(..., LocalTime.class) not working with Postgres timetz type