Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Very weird update conflict problem
Message
De
18/07/2006 18:13:29
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Very weird update conflict problem
Divers
Thread ID:
01137428
Message ID:
01137428
Vues:
65
Greetings,

I've got a VERY simple bit of code:
SELECT v_zips
SCAN
	SELECT zips
	LOCATE FOR zips.zipcode == v_zips.zipcode
	IF !EOF()
	    SELECT v_zips
	    replace v_zips.dealerid WITH zips.dealerid
	ENDIF
	 
ENDSCAN
Basically this is just to update a database server with changes to with dealer is tied to a zip code.

I get an update conflict when it tries to move to the second record in the scan.

Now here is the weird part. You can change data in the browse window of v_zips just fine. Even more weird, you can type the replace command in the command window and then skip off the record and it updates just fine. I did the manual operation in the command window ten times with no conflicts.

Any ideas?

Greg
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform