Re: Timestamp Conversion Woes Redux

Поиск
Список
Период
Сортировка
Искать
От
Dave Cramer
Тема
Re: Timestamp Conversion Woes Redux
Дата
Msg-id
A3CA1F32-2150-4F77-A691-7E39B392265C@fastcrypt.com
Ответ на
Список
Дерево обсуждения
Re: Timestamp Conversion Woes Redux "Kevin Grittner" <Kevin.Grittner@wicourts.gov>

On 22-Jul-05, at 9:42 AM, Tom Lane wrote:

> Dave Cramer  writes:
>
>> One issue I have is that the server returns some time zones in
>> lowercase.
>>
>
>
>> ie EST -> est
>>      EST5EDT -> est5edt
>>
>
> I think that in some contexts the case you will get back is what you
> give in the SET command.  So do
>     set timezone = 'EST5EDT';
> not
>     set timezone = EST5EDT;
> (the latter is downcased as if it were an identifier).
>
Ick .... this makes things tougher ... The user won't necessarily  
quote it if they change it.

I guess if we restrict changing it, as per your other suggestion,  
then this goes away.
>             regards, tom lane
>
> ---------------------------(end of  
> broadcast)---------------------------
> TIP 9: In versions below 8.0, the planner will ignore your desire to
>        choose an index scan if your joining column's datatypes do not
>        match
>
>

В списке pgsql-jdbc по дате отправления
От: Marc Herbert
Дата:
От: Kevin Grittner
Дата:
FAQ