Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Various False Errors with VFP9SP1 OLEDB and .NET2
Message
 
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Environment versions
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01095080
Message ID:
01095763
Views:
28
It's a change in VFP9 SQL ENgine which makes result of such query with aggregate funcions ANSI Standard compliant. See SET ENGINEBEHAVIOR in the help for details.

>I've just run into a serious problem with VFP9SP1 OLEDB where a simple query with only aggregate functions such as SUM(*), when run against a table with no matches to the WHERE criteria, returns an incorrect result. Instead of returning a recordset with RecordCount equal to 0, it erroneously returns a recordset with RecordCount equal to 1, and the fields in that record hold null values rather than valid numeric valuse. As you might imagine, this is a serious error that causes the app to crash everywhere such a roll-up query is executed with no matching input records.
>
>I switched back to the VFP8 OLEDB driver dated 25/8/2003 and the problem went away.
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform