Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trimming Values from Fox to Oracle
Message
 
 
À
18/10/2001 15:30:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00570333
Message ID:
00570530
Vues:
29
Yes you are right. I just don't understand why VFP would see this as an update conflict because you are only changing the value of the data being sent back to the table and not the current value in the table.

>Mark,
>
>Wouldn't the Trigger above reset whatever the new changes are back to what was in the table?
>
>Any way I did create triggers on the Oracle side. They were very similar to the one above with the one exception.
>
>
:new.VarCharField1 := rtrim(ltrim(:new.VarCharField1))
>
>The Problem with doing that was when issuing a tableupdate with a force value of .f. an error occured. The trigger changes the values of the table causing VFP to see this as a change by another user (since the trigger is executed by the server). Thus I get an error unless I set force to .t. and there are instances where business logic will not allow a force value of .t.
>
>I will keep digging. If you come across anything please let me know.
>
>Matt
Mark McCasland
Midlothian, TX USA
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform