Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Seek bug into the select when exact off, there is in VFP
Message
De
22/12/2004 18:36:07
 
 
À
22/12/2004 14:24:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
00971562
Message ID:
00971642
Vues:
16
Of course the same bug live on the dbase commands:
CREATE CURSOR CONTDB (LN C(10),lencode I )
INSERT INTO CONTDB VALUES ('',1)
INSERT INTO CONTDB VALUES ('',0)
INSERT INTO CONTDB VALUES ('',3)
INDEX ON SUBSTR(ln,1,lencode) TAG TT

SET ORDER TO 
CLEAR
SET EXACT OFF

COUNT FOR 'X' =  SUBSTR(ln,1,lencode) && this is not optimized on VFP9 and return a correct 3 counts.
? 'optimized cound return :',_TALLY
COUNT NOOPTIMIZE FOR 'X' =  SUBSTR(ln,1,lencode)
? 'nooptimized count return :',_TALLY
Then, in VFP9 also for the commands dbase,
when the not more optimized string's functions are used,
you can expected different results.

Fabio
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform