Re: Bug in FOREIGN KEY

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Bug in FOREIGN KEY
Дата
Msg-id 200101230416.XAA04293@candle.pha.pa.us
обсуждение исходный текст
Ответ на Bug in FOREIGN KEY  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: Bug in FOREIGN KEY  (Max Khon <fjoe@iclub.nsu.ru>)
Список pgsql-hackers
Can someone tell me where we are on this?

> This problem with foreign keys has been reported to me, and I have confirmed
> the bug exists in current sources.  The DELETE should succeed:
> 
> ---------------------------------------------------------------------------
> 
> CREATE TABLE primarytest2 (
>                            col1 INTEGER, 
>                            col2 INTEGER, 
>                            PRIMARY KEY(col1, col2)
>                           );
> 
> CREATE TABLE foreigntest2 (col3 INTEGER, 
>                            col4 INTEGER,
>                            FOREIGN KEY (col3, col4) REFERENCES primarytest2
>                          );
> test=> BEGIN;
> BEGIN
> test=> INSERT INTO primarytest2 VALUES (5,5);
> INSERT 27618 1
> test=> DELETE FROM primarytest2 WHERE col1 = 5 AND col2 = 5;
> ERROR:  triggered data change violation on relation "primarytest2"
> 
>  
> -- 
>   Bruce Momjian                        |  http://candle.pha.pa.us
>   pgman@candle.pha.pa.us               |  (610) 853-3000
>   +  If your life is a hard drive,     |  830 Blythe Avenue
>   +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026
> 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: SourceForge & Postgres
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Bug in FOREIGN KEY