Re: 'on insert do instead' rule with a where clause responds 'INSERT 0 0'
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: 'on insert do instead' rule with a where clause responds 'INSERT 0 0' |
| Дата | |
| Msg-id | 22418.1189179363@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | 'on insert do instead' rule with a where clause responds 'INSERT 0 0' (Julius Stroffek <Julius.Stroffek@sun.com>) |
| Ответы |
Re: 'on insert do instead' rule with a where clause responds
'INSERT 0 0'
|
| Список | pgsql-bugs |
Julius Stroffek <Julius.Stroffek@sun.com> writes: > Attached is the example script 'repro.sql' which creates two relations > tab1 and tab2. It also creates a rule on tab1 which simply does insert > into tab2. The insert statement into tab1 is executed afterwards. It > responds with 'INSERT 0 1'. However if I would create the same rule with > the where clause the response to the same insert statement is 'INSERT 0 > 0'. The output of the script executed through psql is in 'repro.out'. > Is this a bug? No. See http://www.postgresql.org/docs/8.2/static/rules-status.html and note that you don't have an unconditional INSTEAD rule. regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера