Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Referential Integrity Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00740169
Message ID:
00741232
Vues:
26
Al,

The problem stems from a known issue in the VFP's RI procedural code documented by Doug Henning a few years ago. During a cascading delete/update there is an ON ERROR command that controls how an error is handled during a delete or update. However, if you have any code in the error method of your form, the ON ERROR does not execute. So in my case, the 1539 error that is generated when the user-defined trigger on the child record failed, my form object's error method handled it but the __RI_DELETE procedure did not. Not knowing an error had occured, __RI_DELETE went ahead and deleted the parent record thereby orphaning the chile whose trigger had failed.

That's it...

Jeff
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform