Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Incorect results with ENGINEBEHAVIUOR 90
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062552
Message ID:
01062566
Views:
10
This message has been marked as the solution to the initial question of the thread.
It's not a bug but documented change in SQL behavior.

>
>CREATE CURSOR cTest ( D1 D,Suma N(14,2))
>FOR asd = 1 TO 15
>    INSERT INTO cTest VALUES (DATE()+asd,asd)
>NEXT
>
>SET ENGINEBEHAVIOR 70 && Corect results
>SELECT SUM(SUMA) AS Suma FROM cTest WHERE D1 BETWEEN {^2005/12/1} AND {^2005/12/3} into CURSOR rrr
>? _tally  && Expected 0, prints 0, empty file
>
>SET ENGINEBEHAVIOR 80 && Corect results
>SELECT SUM(SUMA) AS Suma FROM cTest WHERE D1 BETWEEN {^2005/12/1} AND {^2005/12/3} into CURSOR rrr
>? _tally  && Expected 0, prints 0, empty file
>
>
>SET ENGINEBEHAVIOR 90 && Incorect results
>SELECT SUM(SUMA) AS Suma FROM cTest WHERE D1 BETWEEN {^2005/12/1} AND {^2005/12/3} into CURSOR rrr
>? _tally  && Expected 0, printed 1, Suma field contains NULL
>
>
>Maybe Fabio already find this bug, but I didn't remember to see it.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform