Error in JDBC 'Date and Time' docs

From: David Schmidt <david(dot)schmiddi(dot)86(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Error in JDBC 'Date and Time' docs
Date: 2016-07-28 08:44:23
Message-ID: CAH6v9uHnaDq6jjVMTTBymzCCQRmM3vPvkcwCdPyOSbGNnSZkqQ@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Hi,

the docs at
https://jdbc.postgresql.org/documentation/head/8-date-time.html
tell me to use the OffsetTime class for TIMESTAMP WITH TIMEZONE.

Acording to my tests and the source, this is wrong and should be
OffsetDateTime:
https://github.com/pgjdbc/pgjdbc/blob/17b1334a55b96f125f650e15f329ab036430ed4d/pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java#L1046

-David

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Vladimir Sitnikov 2016-07-28 11:43:19 Re: Error in JDBC 'Date and Time' docs
Previous Message Thomas Kellerer 2016-07-28 05:37:53 Re: ResultSet.getClob() causing problems when used with JPA's @Lob