CachedUpdates on cascade delete
Posted: 28.01.2009, 14:33
Helo! sory my english!
PLEASE HELP ME!!!
have3 table tbl1(CachedUpdates=true) , tbl2(CachedUpdates=true) , tbl3(CachedUpdates=true)
field tbl1: id,a
field tbl2: id,id1,b
field tbl3: id1,id2,c
relation
tbl1.id -> tbl2.id
tbl2.id1 -> tbl3.id1
id,id1,id2: triger
(CachedUpdates=true)
on button OK do ApplyUpdates and ComitUpdates (for tbl1,tbl2,tbl3).but if delete record from tbl2 and after that do ApplyUpdates, - have
SQL Error: violation of FOREIGN KEY constraint "TBL2_TBL3_FK" on table "TBL3" Foreign key reference target does not exist. Error Code: -530. violation of FOREIGN KEY constraint "" The SQL: INSERT INTO TBL3 (ID1,ID2,C) VALUES (?,?,?);
use firebird 2.0 Zeos 6.6.3!!!
PLEASE HELP ME!!!
have3 table tbl1(CachedUpdates=true) , tbl2(CachedUpdates=true) , tbl3(CachedUpdates=true)
field tbl1: id,a
field tbl2: id,id1,b
field tbl3: id1,id2,c
relation
tbl1.id -> tbl2.id
tbl2.id1 -> tbl3.id1
id,id1,id2: triger
(CachedUpdates=true)
on button OK do ApplyUpdates and ComitUpdates (for tbl1,tbl2,tbl3).but if delete record from tbl2 and after that do ApplyUpdates, - have
SQL Error: violation of FOREIGN KEY constraint "TBL2_TBL3_FK" on table "TBL3" Foreign key reference target does not exist. Error Code: -530. violation of FOREIGN KEY constraint "" The SQL: INSERT INTO TBL3 (ID1,ID2,C) VALUES (?,?,?);
use firebird 2.0 Zeos 6.6.3!!!