Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Including View inTransaction
Message
From
19/03/1998 16:08:31
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Including View inTransaction
Miscellaneous
Thread ID:
00085801
Message ID:
00085801
Views:
61
I have a 2.6 table that I need to be able to revert. What I have done is create an updateable view to the 2.6 (tod). I tried to test it with the following code:

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
Next
Reply
Map
View

Click here to load this message in the networking platform