Re: difference between current_timestamp and now() in quotes

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: difference between current_timestamp and now() in quotes
Дата
Msg-id 20090122180405.GI4296@alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: difference between current_timestamp and now() in quotes  (Adrian Klaver <aklaver@comcast.net>)
Ответы Re: difference between current_timestamp and now() in quotes
Список pgsql-general
Adrian Klaver escribió:

> At least on 8.2  'now()' does not work either at least not in the way I think
> you want. I get:
>
> test=# SELECT 'now()';
>  ?column?
> ----------
>  now()
> (1 row)

alvherre=# select 'now()'::unknown::timestamptz;
          timestamptz
-------------------------------
 2009-01-22 15:01:46.352979-03
(1 fila)


It even works if you use "text" instead of unknown.

--
Alvaro Herrera                                http://www.CommandPrompt.com/
PostgreSQL Replication, Consulting, Custom Development, 24x7 support

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

Предыдущее
От: Reg Me Please
Дата:
Сообщение: Re: Resp.: difference between current_timestamp and now() in quotes
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: difference between current_timestamp and now() in quotes