Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: COUNT(ICASE(exp,) without eOtherwiseResult!
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
BUG: COUNT(ICASE(exp,) without eOtherwiseResult!
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01005497
Message ID:
01005497
Vues:
68
Expected: same result

Observed: when eOtherwiseResult is absent,
VFP return a Table of 1.
CLEAR

CREATE CURSOR RUNROWS (F1 L)

FOR K=1 TO 500
	APPEND BLANK
NEXT

? "ICASE(.T.,1,NULL)=ICASE(.T.,1)",ICASE(.T.,1,NULL)=ICASE(.T.,1)
SYS(3054,12)


SELECT COUNT(ICASE(.T.,1,NULL)) FROM RUNROWS
? _TALLY


SELECT COUNT(ICASE(.T.,1)) FROM RUNROWS
? _TALLY
SYS(3054,0)
Of course this bug is present on all the grouping functions:
MIN(),MAX()
SUM(),AVG() important !!!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform