Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locking vs. Buffering
Message
De
17/04/1997 12:35:49
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
 
 
À
17/04/1997 11:58:57
Matt Mc Donnell
Mc Donnell Software Consulting
Boston, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00028721
Message ID:
00028731
Vues:
29
> > Are there still advantages to record/file locking or is buffering > sufficient? > > My primary concern regards system counter fields that are being stepped > by mutiple users, probably at the same time (trans. id, etc). > > Will buffering do it? Will a loop using TABLEUPDATE() work? Am I > missing something? > > Matt Maybe I can answer myself. Will this be safe?... and will it work? ----- ON ERROR DO UpdateError WITH ERROR(), lcMyErrorProc llagain = .T. IF !TABLEUPDATE() DO WHILE llagain ROLLBACK {update record code} llagain = !TABLEUPDATE() ENDDO ENDIF ------ buffering is pessimistic row (table is only one record) UpdateError catches 1585 and 1595 or executes lcMyErrorProc
Matt McDonnell
...building a better mousetrap with moldy cheese...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform