Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG in ORDER BY clause
Message
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 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01218621
Message ID:
01218658
Vues:
17
>I thought the same but was told by Aleksey that in VFP the field name takes precedence over field alias. IOW, 'ORDER BY Fld1' references fileds 'cGrp.fld1' which is not a part of result set.

Thank you Sergey.
But then there is a documentation issue. In HELP under SET ENGINEBEHAVIOR topic for ORDER BY is metntioned that ONLY if you have SELECT DISTINCT "ORDER BY command will generate an error if the specified ORDER BY field is not in the SELECT field list"
I do not have DISTINCT clause in that SELECT :-)
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform