Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MySQL select 0 as FLD1 returns character field
Message
De
23/05/2006 08:19:14
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Titre:
MySQL select 0 as FLD1 returns character field
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Divers
Thread ID:
01124223
Message ID:
01124223
Vues:
51
When we do a :
"select 0 as fld1, aa from table1 into cursor table2",
in vfp and in MsSql (via sqlexec) the resulting fld1 field is numeric.

MySQL returns the fld1 as a character field. It does so even if we use the: "select cast(0 as unsigned) as fld1, aa from table1 into cursor table2".

Could odbc be doing some kind of conversion? I 've used the options = 262657 in the sqlconnect string but I don't see any difference.

Has anyone come across this before?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform