[BUGS] BUG #14842: TIMESTAMP WITH TIME ZONE and TIMESTAMP WITHOUT TIMEZONEshould not be comparable
В списке pgsql-bugs по дате отправления:
| От | edpeur@gmail.com |
|---|---|
| Тема | [BUGS] BUG #14842: TIMESTAMP WITH TIME ZONE and TIMESTAMP WITHOUT TIMEZONEshould not be comparable |
| Дата | |
| Msg-id | 20171003195208.28557.28195@wrigleys.postgresql.org обсуждение исходный текст |
| Ответы |
Re: [BUGS] BUG #14842: TIMESTAMP WITH TIME ZONE and TIMESTAMP WITHOUTTIMEZONE should not be comparable
|
| Список | pgsql-bugs |
The following bug has been logged on the website: Bug reference: 14842 Logged by: Eduardo Perez Email address: edpeur@gmail.com PostgreSQL version: Unsupported/Unknown Operating system: All Description: Currently you can do: CREATE TABLE t1 (ts TIMESTAMP WITH TIME ZONE NOT NULL,tr TIMESTAMP WITHOUT TIME ZONE NOT NULL); INSERT INTO t1 (ts,tr) VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP); SELECT * FROM t1 WHERE ts=tr; But it should fail with: ERROR: operator does not exist: timestamp with time zone = timestamp without time zone Also CURRENT_TIMESTAMP should fail to be inserted into a TIMESTAMP WITHOUT TIME ZONE column ERROR: column "tr" is of type timestamp without time zone but expression is of type timestamp with time zone -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера