Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Upgrade to what version?
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 6 SP3
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01370527
Message ID:
01370631
Views:
14
>>>I can't go to 9 because it would be too much work. But I would like to get more stability and take advantage of some additional features that may be in a new OS.
>>>
>>>(The number of support calls I get have gone up as clients upgrade their OS and infrastructure.)
>>
>>The issue I have seen bite people (including me!) in VFP 9 is that by default you now get a runtime error from improper GROUP BY clauses in SQL SELECT statements. In a nutshell, all the output columns need to be aggregates. Otherwise you will get the value from a random record. VFP used to allow that and now it doesn't. From a data perspective this is correct. However, it did break a lot of sloppy code.
>>
>>But wait, there is good news. As Naomi indicates, there is a SET ENGINEBEHAVIOR command that lets you override the default behavior. You can issue this early in your application:
>>
>>SET ENGINEBEHAVIOR 80 && version 8.0
>>
>>The cleaner way is to fix the fishy GROUP BYs. As you say, though, you don't always have the luxury of having the time to do it. It's literally a one line change and your code will work just like it did before. There are a few other issues going from 6 to 9 but in my experience this tends to be the one that bites you.
>
>You would need to set it to 70, not 80. In any case, looks like George has other problems, not related with GROUP BY problem.

Right you are. My mistake.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform