Ошибка при определении FK
Добавлено: 04 ноя 2004, 09:29
Недавно начал использовать IB и тут же наткнулся на грабли:
при выполнении таких запросов :
create table Persons (
Pers_ID smallint not null primary key,
);
create table Institutions (
Inst_ID smallint not null primary key,
);
create table SpecList (
SL_ID smallint not null primary key,
foreign key (Spec_ID) references Specialities (Spec_ID)
on update cascade on delete cascade,
foreign key (Inst_ID) references Institutions(Inst_ID)
on update cascade on delete cascade
);
выскакивает ошибка
Unsuccessful metadata update
Unknown columns in index RDB$FOREIGN17
она выдается как в 5 так и в 6 версии
Возможно, я что-то делаю не так?
при выполнении таких запросов :
create table Persons (
Pers_ID smallint not null primary key,
);
create table Institutions (
Inst_ID smallint not null primary key,
);
create table SpecList (
SL_ID smallint not null primary key,
foreign key (Spec_ID) references Specialities (Spec_ID)
on update cascade on delete cascade,
foreign key (Inst_ID) references Institutions(Inst_ID)
on update cascade on delete cascade
);
выскакивает ошибка
Unsuccessful metadata update
Unknown columns in index RDB$FOREIGN17
она выдается как в 5 так и в 6 версии
Возможно, я что-то делаю не так?