Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How would you solve this one
Message
 
À
12/05/1999 04:45:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00217516
Message ID:
00217806
Vues:
25
>Ok for me not to use transactions but how do you handle problems like this :
>
>- tableupdate(parenttable) returns .t.
>- tableupdate(childtable) returns .f. and the user decides to cancel because he doesn't get out (locked record, some ruleexpression return .f., etc ...)
>
>What do you do with the parenttable that got updated already ?
>The problem gets more complicated as more tables need to be update the same time : as soon as one update fails (for whatever reason) ...

I think Pascal has it right. Transactions ARE used to rollback a failed one-to-many save routine's multiple TABLEUPDATE()s. He's not starting the transaction when the user starts editing, he's starting the transaction when the user tries to save. Right, Pascal?

- Rich.
Rich Addison, Micro Vane, Inc., Kalamazoo, MI
Relax, don't worry, have a homebrew.
- Charlie Papazian, The New Complete Joy of Home Brewing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform