Re: lastval()

Поиск
Список
Период
Сортировка
От Abhijit Menon-Sen
Тема Re: lastval()
Дата
Msg-id 20050511033545.GA23670@penne.toroid.org
обсуждение исходный текст
Ответ на Re: lastval()  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: lastval()
Список pgsql-patches
At 2005-05-10 23:30:05 -0400, pgman@candle.pha.pa.us wrote:
>
> > By the way, what would lastval() do if an insert trigger inserts
> > a row into a table with another serial column?
>
> It fails, just like it would fail now if the trigger inserted into
> the same table that used the trigger, or a rule.

I don't understand what you mean. "Just like it would fail now"? It
doesn't exist yet, how can it fail? And how would it know when to
fail anyway, rather than return a wrong value?

-- ams

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: lastval()
Следующее
От: "John Hansen"
Дата:
Сообщение: Re: lastval()