Re: plpgsql - Inserting DEFAULT Value.

Поиск
Список
Период
Сортировка
От Vams
Тема Re: plpgsql - Inserting DEFAULT Value.
Дата
Msg-id 200406211232.57297.vmudrageda@charter.net
обсуждение исходный текст
Ответ на Re: plpgsql - Inserting DEFAULT Value.  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
On Sunday 20 June 2004 03:37 pm, Tom Lane wrote:
> Consider passing the appropriate sequence name to the function as a
> trigger parameter.

That was going to be a last resort.  So there is no way to access the DEFAULT
value that a column would get if no value or a DEFAULT was sent in an insert?
How about removing a column value so that the default action would be
performed.  Like someone would "INSERT ... VALUES (1234, ...);" and I would
remove the 1234 or something similar so that the INSERT would activate the
default constraint for the column?

Thx,
  Vams

PS.  I tried to post much sooner (like a week ago), but for some reason I was
unable to.  I emailed the admins and whoever dropped the restriction, thank
you very much.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Possible SET SESSION AUTHORIZATION bug
Следующее
От: Dennis Gearon
Дата:
Сообщение: Re: JDBC driver inserting into a table with Bytea type gets out of