Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
BUG: SELECT UNION bad fieldname with a order pass
Message
De
05/09/2005 16:31:41
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
BUG: SELECT UNION bad fieldname with a order pass
Versions des environnements
Visual FoxPro:
VFP 9
Database:
Visual FoxPro
Divers
Thread ID:
01046830
Message ID:
01046830
Vues:
49
when VFP apply a ORDER pass ( it do this also to make the distinct pass )
VFP build a new cursor
but it uses the names of the fields of the last select
in the case these is present:
CREATE CURSOR AA (MM I)

SELECT 1.00 X1,.f. X2 FROM AA;
UNION ALL;
SELECT 1.00 Y1,.T. Y2 FROM AA

SELECT 1.00 X1,.f. X2 FROM AA;
UNION ;
SELECT 1.00 ,.T. FROM AA

* FIELD NAMES = Y1,Y2
SELECT 1.00 X1,.f. X2 FROM AA;
UNION ;
SELECT 1.00 Y1,.T. Y2 FROM AA

* FIELD NAMES = Y1,Y2
SELECT 1.00 X1,.f. X2 FROM AA;
UNION ALL;
SELECT 1.00 Y1,.T. Y2 FROM AA ORDER BY 2
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform