Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Index Error 1884
Message
De
05/04/2016 08:22:22
 
 
À
05/04/2016 08:00:50
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 8.1
Network:
SAMBA Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01634277
Message ID:
01634308
Vues:
28
I meant something like
select count(*) from (calias) where cTAG=tcKey and deleted() into array laDel
if laDel[1]>0
*** uncertain how your code best fixed to assumptions
endif
IF !SEEK(tcKey,cALias,cTAG)
 INSERT INTO ...
ELSE
 REPLACE ...
ENDIF
or
lcdele = set("DELETED")
set dele off 
IF !SEEK(tcKey,cALias,cTAG)
 INSERT INTO ...
ELSE
 REPLACE ...
ENDIF
if lcdele=="ON"
 set dele on
endif
as a table never is safe from others fiddling with it.


>>Back when vfp was enhanced, my idea for an additional parameter for indexseek to ignore set deleted filtering was not wanted - which was meant for such situations. Still, your code for replace/insert ***should*** take care of that: either set deleted off for the check and reset or add another check with for deleted(). That way THAT error would never occur, no idea of the coworkers addition would have created other problems in the system
>
>That's the sole place that uses such stuff. Any other primary will run on synthetic, incremented numbers, so it's very hard to insert a conflict.
>
>The code would have not failed on developers machine because the carbage collection was packing fast enough. Normaly this kind of job is done by a supervisor outside of general business - by the way the supervisor is doing his job - so no hickup on this for more then 10 years. There must have been something - the index should be changed to something random - but it's never updated by that code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform