Re: Trigger function which inserts into table; values from lookup
В списке pgsql-general по дате отправления:
| От | Alvaro Herrera |
|---|---|
| Тема | Re: Trigger function which inserts into table; values from lookup |
| Дата | |
| Msg-id | 20070520235743.GA25843@alvh.no-ip.org обсуждение исходный текст |
| Ответ на | Re: Trigger function which inserts into table; values from lookup (novnov <novnovice@gmail.com>) |
| Ответы |
Re: Trigger function which inserts into table; values
from lookup
|
| Список | pgsql-general |
novnov escribió: > > Inching closer; the following handles the dupe key error but doesn't insert > the rows it should either. So, the exception is ending the insert, and not > continuing to insert for rows that don't violate the unique key restraint. > Is there a way around this or will I need to take a different approach? You have to make the function return NEW, not NULL, if this is a BEFORE trigger. -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера