Subject Re: [firebird-support] Re: could not find UNIQUE INDEX with specified columns
Author Helen Borrie
At 19:20 16/10/2008, you wrote:

>Hi
>
>CREATE TABLE test (field1 integer, field2 char(1024), field3 integer,
>PRIMARY KEY (field1))
>
>After:
>
>ALTER TABLE test ADD FOREIGN KEY (field3) REFERENCES test(field1)
>
>Throws: could not find UNIQUE INDEX with specified columns

You need to commit the first statement before the second one will work.

./heLen