| От | Stefano Reksten |
|---|---|
| Тема | Re: Bug #616: Alter table add foreign key |
| Дата | |
| Msg-id | 5.1.0.14.2.20020315133511.00a11600@rfi1 обсуждение исходный текст |
| Ответ на | Bug #616: Alter table add foreign key (pgsql-bugs@postgresql.org) |
| Список | pgsql-bugs |
At 07.24 15/03/02 -0500, you wrote:
>I tried to execute following SQL alter table PRICEGROUP add FOREIGN
>KEY ("PARENT") REFERENCES "PRICEGROUP" ON DELETE CASCADE
>
>this gives an error ALTER TABLE: column "PARENT" referenced in foreign key
>constraint does not exist (7) while I'm sure that the column exists and is
>Non null. I'm using version 7.2 on linux redhat 7.2
Hello Dirk,
if you are using double quotes around the column name the name won't be
translated in lowercase; maybe the column name wasn't created this way and
that's why you caon't find it. Try to
alter table pricegroup add foreign key (parent) references pricegroup on
delete cascade
without using double quotes.
Just my 0.02
Ciao,
Stefano
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера