| От | Kevin Murphy |
|---|---|
| Тема | Question about inscrutable cast syntax |
| Дата | |
| Msg-id | 494BC4EF.6030105@genome.chop.edu обсуждение |
| Ответы |
Re: Question about inscrutable cast syntax
|
| Список | pgsql-general |
Two versions of an application differ in the way a particular column is
defined.
OLD:
lastupdated timestamp without time zone DEFAULT
('now'::text)::timestamp(6) with time zone NOT NULL
NEW:
lastupdated timestamp without time zone DEFAULT now() NOT NULL
I believe these are both the result of an automatic mysql-to-postgresql
conversion process rather than hand-coded.
For my personal edification, I'd like to understand what's going on with
that first one! Note that the column type is timestamp without time
zone, so I'm also curious about the 'with time zone' modifier in the
first example.
Thanks,
Kevin Murphy
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера