Re: Bug with rules in 7.0.3?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug with rules in 7.0.3?
Дата
Msg-id 2363.981224317@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug with rules in 7.0.3?  (Tod McQuillin <devin@spamcop.net>)
Ответы Re: Bug with rules in 7.0.3?  (Tod McQuillin <devin@spamcop.net>)
Список pgsql-sql
Tod McQuillin <devin@spamcop.net> writes:
> How the heck can one insert and update generate three rows?

Looks like a rule rewriter bug to me.  It seems to be fixed in 7.1;
I get

regression=# SELECT * FROM orders;order_id | menu_id | price
----------+---------+-------       1 |       2 |    -1
(1 row)

which is the correct result given that rules are executed before the
original query.  (Which is why you need a trigger for this...)
        regards, tom lane


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

Предыдущее
От: Tod McQuillin
Дата:
Сообщение: Bug with rules in 7.0.3?
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: Suggestion for psql: --file -