Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DISTINCT changes datatype
Message
 
 
To
12/05/2010 11:41:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
Miscellaneous
Thread ID:
01464251
Message ID:
01464307
Views:
45
>>In other words, why do you need to go to MySQL at all to get this result?
>
>Because it was Tuesday and that's the day I post pointless quesstions on UT.
>
>Because I simplified a different query to focus on what I considered a strange result. Would it really have mattered if I had posted
>SELECT < myFieldList including a bit field >
>and the bit field is Logical in the resulting cursor
>SELECT DISTINCT < myFieldList including a bit field >
>and the bit field is now Character

Can you try Fabio's alternative even for your complex case (e.g. put all fields into GROUP BY)?

I don't really use MySQL but I saw threads here that bit type comes as char before.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform