Re: ResultSet.getObject(..., LocalTime.class) not working withPostgres timetz type - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject Re: ResultSet.getObject(..., LocalTime.class) not working withPostgres timetz type
Date
Msg-id 716bbd9d-7708-f73b-7b49-641cc9e2790b@gmx.net
Whole thread Raw
In response to Re: ResultSet.getObject(..., LocalTime.class) not working withPostgres timetz type  (Mark Rotteveel <mark@lawinegevaar.nl>)
Responses Re: ResultSet.getObject(..., LocalTime.class) not working withPostgres timetz type  (pm@netcetera.ch)
List pgsql-jdbc
Mark Rotteveel schrieb am 06.04.2019 um 10:15:
>> Retrieving the value of a timetz column fails when using getObject(, LocalTime.class)
>>
>> I am not sure if this is the same as: https://github.com/pgjdbc/pgjdbc/issues/1048
>> If it's not the same root cause, should I create an issue?
>>
>> Using "select localtime" instead, works just fine

> For reference, the JDBC specification does not specify support java.time.LocalXXX types on WITH TIME ZONE types.
>
> Especially because it is rather ambiguous what local would mean: would it mean local in the default JVM time zone,
localat the original zone or local at UTC? 

Makes sense.

However, the column is reported as Types.TIME and not Types.TIME_WITH_TIMEZONE, that's why I stumbled over it.

I think the driver should then support getObject(1, OffsetTime.class), shouldn't it?

Thomas






pgsql-jdbc by date:

Previous
From: Mark Rotteveel
Date:
Subject: Re: ResultSet.getObject(..., LocalTime.class) not working withPostgres timetz type
Next
From: Nikolai Ivanov
Date:
Subject: [pgjdbc/pgjdbc] b6ab27: fix: improper relative cursor movement(#1462)