Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Error on insert
Message
De
25/10/2007 13:28:43
 
 
À
25/10/2007 13:16:44
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01263375
Message ID:
01263714
Vues:
12
>>>>There are other tables open with buffering set to 3. Since this is an insert and not an edit I assumed buffering is not needed for this table. Plus we want the code to work whether the table is previously opened or not. Hence the syntax that includes the dbc.
>>>
>>>Which is all fine, it's the error message that really shouldn't happen. Is there a tableupdate() implied somewhere (via trigger maybe)?
>>
>>The code in question is contained in a stored procedure which is called via update trigger. And yes, the trigger is firing when it shouldn't. I'm trying to track that down too. However, that doesn't explain to me why the error.
>
>Are we sure that we know which table is this about? It may be trying to do something with some other table, which may need buffering.

That's a good question. The command is
insert into tiplog (tip_id,employee,changedate,changetable,changefield,oldvalue,newvalue) values ;
(lnTIP_ID,employee,time(),tcAlias,lcFieldName,alltrim(transform(oldval(lcFieldName))),alltrim(transform(evaluate(lcFieldName))))
tiplog is a plain vanilla dbf living in the dbc. There are no triggers in it or other relations, or relational integrity. So how could there be another table involved? Does multilocks on mandate buffering be enabled?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform