Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP relationships and NULLS allowed
Message
De
02/11/1998 20:00:38
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
VFP relationships and NULLS allowed
Divers
Thread ID:
00153763
Message ID:
00153763
Vues:
50
It does not seem possible to define a VFP database relationship where the child table has "insert restrict" and "nulls allowed" on the foreign key column.

I wish to have a child table INVLIVE where the foreign key column CASE_ID may be null. But if CASE_ID is not null, then it is to be a valid value within the parent CASE table.

When I specify the rule of insert restrict, the generated stored procedure has a line like if seek( lcChildID, pcParentWorkArea) which generates an error of datatype mismatch because lcChildID is NULL. The entire stored procedure does not mention or take into account NULLs.

Is there anyway to modify how VFP generates trigger code besides modifying it after the fact?
------------------------------
Jeff King
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform