Re: Problem in ResultSet#getTimestamp() of 7.2b4

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Ryouichi Matsuda <r-matuda(at)sra(dot)co(dot)jp>
Cc: barry(at)xythos(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problem in ResultSet#getTimestamp() of 7.2b4
Date: 2002-01-25 02:08:19
Message-ID: 200201250208.g0P28JT09512@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-jdbc


This has been saved for the 7.3 release:

http://candle.pha.pa.us/cgi-bin/pgpatches2

---------------------------------------------------------------------------

Ryouichi Matsuda wrote:
> Barry Lind wrote:
> > Then however I did try your last query:
> >
> > select 'now'::timestamp without time zone;
> >
> > and this does fail for me with the string index out of bounds exception.
>
> An attached patch corrects problem of this bug and fractional second.
>
>
> The handling of time zone was as follows:
>
> (a) with time zone
> using SimpleDateFormat("yyyy-MM-dd HH:mm:ss z")
> (b) without time zone
> using SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
>
>
> About problem of fractional second,
> Fractional second was changed from milli-second to nano-second.

[ Attachment, skipping... ]

[ Attachment, skipping... ]

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-01-25 02:08:28 Re: Problem in ResultSet#getTimestamp() of 7.2b4
Previous Message Bruce Momjian 2002-01-25 01:52:38 Re: problem with notify/listen

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2002-01-25 02:08:28 Re: Problem in ResultSet#getTimestamp() of 7.2b4
Previous Message Ola Sundell 2002-01-23 13:28:46 Re: Getting exact string length from char fields in JDBC