Re: Values of fields in Rules

Поиск
Список
Период
Сортировка
От mito
Тема Re: Values of fields in Rules
Дата
Msg-id gtq349$2gil$1@news.hub.org
обсуждение исходный текст
Ответ на Values of fields in Rules  (mito <milos.orszag@gmail.com>)
Ответы Re: Values of fields in Rules  (Alvaro Herrera <alvherre@commandprompt.com>)
Список pgsql-hackers
mito wrote:
> Hi,
> 
> when i create rule(on insert) on view(select id, name from users), i 
> will recieve values that were inserted in form of reference words 
> new.id, new.name.
> 
> if i insert into users (id, name) values (null, null);
> then new.id = null and new.name = null
> 
> if i insert into users (name) values (null);
> then new.id = null and new.name = null
> 
> is there any way how to distinguish that id column wasnt explicitly named?
> 

is there any way how to determinate in rule that null comes from 
explicit insert or from not naming column in insert statment


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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: bytea vs. pg_dump
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Wrong stats for empty tables