Thread View: pl.comp.lang.delphi.bazy-danych
3 messages
3 total messages
Started by Pawel Koloszko
Sat, 22 May 1999 12:49
Interbase i on update cascade
Author: Pawel Koloszko
Date: Sat, 22 May 1999 12:49
Date: Sat, 22 May 1999 12:49
20 lines
1390 bytes
1390 bytes
mam stworzone dwie tablice: create table XXX (pole_x jakis_typ primary key); oraz create table YYY (pole_y jakis_typ, constraint check_poley foreign key (pole_y) references XXX(pole_x) on update cascade); Wydawalo mi sie, po przeczytaniu helpa, ze dzieki takiej konstrukcji zmiana pola_x w tablicy XXX spowoduje automatyczna zmiany wartosci pola_y w tablicy YYY. Niestety otrzymuje blad: violation of FOREIGN KEY constraint "CHECK_poley" on table "YYY" Mam wiec pytanie czy mnie sie zle wydawalo czy moja konstrukcja jest bledna czy tez Interbase cos kwasi ? Interbase jest w wersji 5.0 PK
Re: Interbase i on update cascade
Author: Traptak
Date: Sun, 23 May 1999 22:57
Date: Sun, 23 May 1999 22:57
20 lines
1429 bytes
1429 bytes
Pawel Koloszko napisał: > > create table XXX (pole_x jakis_typ primary key); > create table YYY (pole_y jakis_typ, > constraint check_poley foreign key (pole_y) references XXX(pole_x) on update > cascade); > Niestety otrzymuje blad: > > violation of FOREIGN KEY constraint "CHECK_poley" on table "YYY" > > Mam wiec pytanie czy mnie sie zle wydawalo czy moja konstrukcja jest bledna > czy tez Interbase cos kwasi ? Interbase jest w wersji 5.0 U mnie cos takiego chodzi, więc u Ciebie też powinno. Faktem jest, że mam akurat klucze skłšdajšce się z dwóch wartosci. Sprawd może, czy triggery nie przechwytujš w jakis sposób zmiany klucza. Traptak
Re: Interbase i on update cascade
Author: Pawel Koloszko
Date: Mon, 24 May 1999 05:50
Date: Mon, 24 May 1999 05:50
27 lines
1753 bytes
1753 bytes
Traptak wrote in message <374887C3.5FC61AD4@gryf.com.pl>... Pawel Koloszko napisał: >> create table XXX (pole_x jakis_typ primary key); >> create table YYY (pole_y jakis_typ, >> constraint check_poley foreign key (pole_y) references XXX(pole_x) on update >> cascade); >> Niestety otrzymuje blad: >> >> violation of FOREIGN KEY constraint "CHECK_poley" on table "YYY" >> >> Mam wiec pytanie czy mnie sie zle wydawalo czy moja konstrukcja jest bledna >> czy tez Interbase cos kwasi ? Interbase jest w wersji 5.0 >U mnie cos takiego chodzi, więc u Ciebie też powinno. Faktem jest, że >mam akurat >klucze skłądające się z dwóch wartosci. Sprawdź może, czy triggery nie >przechwytują >w jakis sposób zmiany klucza. U mnie tez zaczelo chodzic. Po odlaczaniu sie od bazy i polaczeniu sie ponownym wszystko zaczelo dzialac. Tak jakos dziwnie to dziala. PK
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads