Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do you ROLLBACK a view
Message
De
06/03/1998 11:07:20
Edward Crawford
City Facilities Management
Glasgow, Royaume Uni
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00082524
Message ID:
00083009
Vues:
44
>>Jim:
>>AERROR() shows Error 1547, "Cannot insert an empty row from a view into its base table". When I look up error 1547, it states that you cannot insert a blank record into a table. There is only one new row in the view, and it has something in it, so its not blank. I'm still stumped.
>>
>>Ed
>
>Ed,
>
>I just notice d anothr syntax error in the sample code, you have END TRANSACTION as one word instead of two. Try fixing that and see if the same thing is happening.

Right now I'm just trying get the base table to update, so I am typing the following at the command line:

OPEN DATABASE Data
SELECT 0
USE TableA
SELECT 0
USE Data!ViewA
CURSORSETPROP("buffering", 5, "ViewA")
SELECT ViewA
INSERT INTO ViewA(Dnis) VALUES("Test")
TABLEUPDATE(2,.T., "ViewA")

record is in view, but not in base table. TABLEUPDATE() returns F, AERROR() shows Error 1547, "Cannot insert an empty row from a view into its base table".

Ed
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform