[SQL/BUGS] (possible) inconsistent behaviour of timestamp?

Поиск
Список
Период
Сортировка
От Rison, Stuart
Тема [SQL/BUGS] (possible) inconsistent behaviour of timestamp?
Дата
Msg-id 6BD8CE460CC6EE40B83DDFCED609F84BE140D8@cmnt4008.rvc.ac.uk
обсуждение исходный текст
Ответы Re: [SQL/BUGS] (possible) inconsistent behaviour of timestamp?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-sql
Here's an "interesting" timestamp related postgreSQL quirk:

testdb2=# select "timestamp"('now');        timestamp
----------------------------2002-11-26 13:47:12.454157
(1 row)

testdb2=# select 'now'::timestamp;        timestamptz
------------------------------2002-11-26 13:47:34.88358+00
(1 row)

testdb2=# select timestamp 'now';         timestamptz
-------------------------------2002-11-26 13:47:47.701731+00
(1 row)

The first SELECT returns a 'timestamp', but the next two return a
'timestamptz' (presumably with timezone); is this inconsitent behaviour?

Cheers,

Stuart.
Royal Veterinary College
London, UK


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

Предыдущее
От: "Albrecht Berger"
Дата:
Сообщение: Inheritance in SQL99 ?
Следующее
От: "Rison, Stuart"
Дата:
Сообщение: Two TIMESTAMPs in one pl/sql function