Re: Sequences, triggers and 'OLD' - am I being stupid?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Sequences, triggers and 'OLD' - am I being stupid?
Дата
Msg-id 3637.1128694710@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Sequences, triggers and 'OLD' - am I being stupid?  ("Steve South" <steve.south@blueyonder.co.uk>)
Список pgsql-novice
"Steve South" <steve.south@blueyonder.co.uk> writes:
> ERROR:  record "old" has no field "userid"

I think you're just being sloppy about capitalization:

>     OLD."UserId",

>   "UserID" int4 NOT NULL DEFAULT nextval('public."UserT_UserID_seq"'::text),

"UserID" != "UserId".

Also, the error message suggests strongly that you didn't double-quote
the name in at least one place in the trigger, so that it got folded
to lower case.

            regards, tom lane

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

Предыдущее
От: "Lee, Patricia S."
Дата:
Сообщение: Adding a template for new platform
Следующее
От: "Jon Burroughs"
Дата:
Сообщение: Intersection of two time segments