Re: casting interval to time

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: PGSQL-SQL <pgsql-sql(at)postgresql(dot)org>
Subject: Re: casting interval to time
Date: 2003-06-16 15:00:29
Message-ID: 3EEDDB8D.5080401@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Dnia 2003-06-16 16:53, Użytkownik Tom Lane napisał:
> Tomasz Myrta <jasiek(at)klaster(dot)net> writes:
>
>>psql (PostgreSQL) 7.3.2
>>SELECT cast(cast('1 day 12 hours' as interval) as time);
>> time
>>----------
>> 00:00:00
>>(1 row)
>
>
> I get 12:00:00 here, using 7.3.3 ... platform-specific problem maybe?
Default Debian package. I got the same result even on a 7.3.3 Debian
package.

postgresql.conf contains:
DATESTYLE = 'iso,european'
LC_MESSAGES = 'C'
LC_MONETARY = 'C'
LC_NUMERIC = 'C'
LC_TIME = 'C'

Regards,
Tomasz Myrta

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2003-06-16 15:17:11 Re: casting interval to time
Previous Message BenLaKnet 2003-06-16 14:55:10 [pgmail] - I have problems with pgmail