Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select speed question
Message
De
25/12/2004 13:54:15
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
00971916
Message ID:
00972143
Vues:
18
>>if VFP9 don't optimize STR(), it is not a bug, it is correct.
>>Of course, with current index routines, VFP8 and VFP9b can return wrong results when you use a STR().
>>
>>On next example, STR() blank zero numbers.
>>
>
>
>VFP doesn't optimize STR(cExpr,nLen) makes a disastrous impact on existing projects. If nLen is a literal constant, it should be optimized. This should also be true for LEFT(), REPLICATE(), LEFT(), RIGHT(),...
>
>That is, VFP should optimize a query matching an index expression like:
>INDEX ON STR(iField,4) TAG TT
>
>and does not optimize a query matching the following:
>INDEX ON STR(iField,iField) TAG TT
>
>
>Ben

Hi Ben,

Yes, it is bad that STR() is not optimized when it should be. It is limited to inexact comparison only, i.e. SET ANSI is OFF. Is that the type of comparison you were targeting in your projects?

Thanks,
Aleksey.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform