Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Including View inTransaction
Message
 
À
19/03/1998 16:08:31
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00085801
Message ID:
00085831
Vues:
23
>SELECT 0
>USE c:\temp\tes1 && 5.0 table
>
>SELECT 0
>USE c:\temp\tod && 2.6 table
>
>SELECT 0
>USE test!TimeOfDay && updatable view to 2.6 table
>CURSORSETPROP("buffer", 5, "TimeOfDay")
>
>INSERT INTO test1(dnis) VALUES("Test")
>INSERT INTO timeofday(dnis) VALUES("Test")
>
>BEGIN TRANSACTION
> TABLEUPDATE(1, .T., "test1")
> TABLEUPDATE(1, .T., "timeofday")
>ROLLBACK
>
>test1 rolls back the changes but timeofday does not roll back the changes to tod. Why is this?
>
>Ed

Ed,

That is because the TableUpdate() on the view succeeded and that in turn updated the free table, the free table cannot particiate in the transaction so its update is not buffered inside of the transaction. When you issue the rollback you are rolling back all of the actions that are part of the transaction adn the free table update is not part of the transaction.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform