Re: timestamp convert function

From: Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
To: Nhan NGO DINH <nngodinh(at)tiscali(dot)it>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: timestamp convert function
Date: 2003-11-27 09:29:22
Message-ID: 20031127092922.GA511@zf.jcu.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Nov 27, 2003 at 09:49:22AM +0100, Nhan NGO DINH wrote:
> Hi,
>
> This is really not a problem, may be in other circumstances...
> This output has been obtained from a PostgreSQL 7.3.4
>
> ===
> testdb=# select to_timestamp('23:20:30.123456', 'HH24:MI:SS.US')::time;
> to_timestamp
> -----------------
> 23:20:30.123459
> (1 row)
>
> testdb=# select to_timestamp('23:20:30', 'HH24:MI:SS.US')::time;
> to_timestamp
> --------------
> 23:20:30
> (1 row)
>
> testdb=# select to_timestamp('23:20:30', 'HH24:MI:SS.US')::time;
> to_timestamp
> -----------------
> 23:20:30.123459
> (1 row)

I think it's fixed in 7.4.

Karel

--
Karel Zak <zakkr(at)zf(dot)jcu(dot)cz>
http://home.zf.jcu.cz/~zakkr/

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Doug McNaught 2003-11-27 13:45:21 Re: 7.5 Plans
Previous Message Peter Eisentraut 2003-11-27 09:12:46 Re: Viewing Parse Tree of a query from front end