Bug #511: multiple foreign keys on same table fail update cascade

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Bug #511: multiple foreign keys on same table fail update cascade
Дата
Msg-id 200111071827.fA7IRhU16629@postgresql.org
обсуждение исходный текст
Список pgsql-bugs
Paul Wehr (postgresql@industrialsoftworks.com) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
multiple foreign keys on same table fail update cascade

Long Description
I would expect the code below to say "1 records updated", setting the values of t_b.b and t_b.c to "2".

Sample Code
create table t_a (a int, primary key (a));
create table t_b (b int, c int,
        foreign key (b) references t_a (a) on update cascade,
        foreign key (c) references t_a (a) on update cascade);
insert into t_a values (1);
insert into t_b values (1, 1);
update t_a set a=2;



No file was uploaded with this report

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

Предыдущее
От: Kovacs Zoltan
Дата:
Сообщение: Re: Bug #510: conditional rules sometimes work more than
Следующее
От: Hans-Jürgen Schönig
Дата:
Сообщение: Bug in 7.1.3 and 7.2?