Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MySQL select 0 as FLD1 returns character field
Message
From
23/05/2006 08:19:14
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Client/server
Title:
MySQL select 0 as FLD1 returns character field
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
MySQL
Miscellaneous
Thread ID:
01124223
Message ID:
01124223
Views:
49
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?
Next
Reply
Map
View

Click here to load this message in the networking platform