Re: Failure in timestamptz of JDBC of 7.2b4 - Mailing list pgsql-jdbc

From Ryouichi Matsuda
Subject Re: Failure in timestamptz of JDBC of 7.2b4
Date
Msg-id 20020115192158.771C.R-MATUDA@sra.co.jp
Whole thread Raw
In response to Re: Failure in timestamptz of JDBC of 7.2b4  (Ryouichi Matsuda <r-matuda@sra.co.jp>)
List pgsql-jdbc
I wrote:
> In addition, I found an error of time type.
>
>     Statement st = db.createStatement();
>     ResultSet rs = st.executeQuery("SELECT 'now'::time");
>     rs.next();
>     Time t = rs.getTime(1);
>     System.out.println(t);
>
> This becomes string index out of bounds exception.

An attached patch corrects this error.

But time is always local time zone.
In this patch, time zone does not look.

Attachment

pgsql-jdbc by date:

Previous
From: "Vianen, Jeroen van"
Date:
Subject: Re: Problem with getImportedKeys / getExportedKeys
Next
From: "Alaric B. Snell"
Date:
Subject: Explicit typing of numeric types