Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RECALL with updateable views - bug?
Message
 
To
06/07/2003 19:40:54
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00807071
Message ID:
00807571
Views:
18
Hi Aleksey,
I certainly missed the part in the VFP docs saying that RECALL does not work with views - can you point me to that part of the docs?
On the other hand, if RECALL is not a SQL command, shouldn't it be disabled, or generate an error when used with a view?
Thanks.

>>I was getting duplicate keys in an app using an updateable local view to update a free table. Yesterday I discovered that recalling a deleted record in a view DOES NOT RECALL the record in the base table, but actually creates a new record, a duplicate!!!
>>
>>Unless I missed something, this makes updateable views not only useless, but extremely dangerous.
>>
>
>Hi Dory,
>
>You missed a very important detail - local/remote view is a SQL VIEW. RECALL is not a SQL command. In VFP, SQL view modifies a base table using SQL-DELETE, SQL-UPDATE, SQL-INSERT, none of those commands recalls deleted records.

>
>Thanks,
>Aleksey.
Doru
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform