Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Casting timestamp

Поиск
Список
Период
Сортировка
От Edipo E. F. Melo
Тема Casting timestamp
Дата
Msg-id 20020519125527.BF7D14758D7@postgresql.org
обсуждение исходный текст
Ответы Re: Casting timestamp
Список pgsql-sql
Hi all, 
I posting this again...
Why the second casting don't work?

--- start with this 
set datestyle = 'iso'; 
show datestyle; 
select current_timestamp::text::timestamp; 
--- now try this 
set datestyle = 'postgres'; 
show datestyle; 
select current_timestamp::text::timestamp; 
   In the first one, I get          timestamptz 
------------------------------- 2002-05-13 10:19:55.158434-03 
   In the last one, I get 
ERROR:  Bad timestamp external representation 'Mon May 13 10:19:56.671847 
2002 BRT' 


   []'s
   Edipo Elder F. de Melo




В списке pgsql-sql по дате отправления: