ALTER TABLE Problem - Mailing list pgsql-bugs

From dirk.jacobs@tuple.be
Subject ALTER TABLE Problem
Date
Msg-id OFB1290811.1351ED72-ON41256B7D.0043FB99@tuple.be
Whole thread Raw
List pgsql-bugs
Hi,

- 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

- I also tried some ODBC stuff. Here I've seen that the S.... result codes
are not correct. Most of the time it simply return S1000 which is a
general error code.

and not a specific code. e.g. when you want to create a table that already
exists it should return the correct error. ( same for an index, etc... )


Regards,


Dirk Jacobs

pgsql-bugs by date:

Previous
From: "Mikheev, Vadim"
Date:
Subject: Re: Bug #613: Sequence values fall back to previously chec
Next
From: Viacheslav N Tararin
Date:
Subject: ...