Re: Assigning a timestamp without timezone to a timestamp

Поиск
Список
Период
Сортировка
От chrisj
Тема Re: Assigning a timestamp without timezone to a timestamp
Дата
Msg-id 6827636.post@talk.nabble.com
обсуждение исходный текст
Ответ на Re: Assigning a timestamp without timezone to a timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Assigning a timestamp without timezone to a timestamp  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Did not seem to help:

protocal2=> select start_datetime,cast(cast(cast(start_datetime as
timestamp(0) without time zone) as varchar)||' '||B.timezone_ch as
timestamp(0) with time zone) from reservation A, location B where  appt_key
= 7 and locn_key = 102 ;
ERROR:  invalid input syntax for type timestamp with time zone: "2006-07-13
09:20:00 America/New_York"



Tom Lane-2 wrote:
> 
> chrisj <chrisj.wood@sympatico.ca> writes:
>> It works fine with fixed offset timezones, but when I try it with EST5EDT
>> I get the following:
>> ERROR:  invalid input syntax for type timestamp with time zone:
>> "2006-07-13
>> 09:20:00 EST5EDT"
> 
> Try it with "America/New_York".  The datetime parser seems to think that
> a timezone name shouldn't contain digits ... which is bogus, but we'll
> have to think carefully about how to improve it ...
> 
>             regards, tom lane
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: if posting/reading through Usenet, please send an appropriate
>        subscribe-nomail command to majordomo@postgresql.org so that your
>        message can get through to the mailing list cleanly
> 
> 

-- 
View this message in context:
http://www.nabble.com/Assigning-a-timestamp-without-timezone-to-a-timestamp-with-timezone-tf2373845.html#a6827636
Sent from the PostgreSQL - sql mailing list archive at Nabble.com.



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

Предыдущее
От: ow
Дата:
Сообщение: Re: Temp tables, reports in Postgresql (and other RDBMS)
Следующее
От: "Marc G. Fournier"
Дата:
Сообщение: Recursive pl/pgsql function ...