Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
BUG: Incorect results with ENGINEBEHAVIUOR 90
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
BUG: Incorect results with ENGINEBEHAVIUOR 90
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01062552
Message ID:
01062552
Views:
60
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.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Next
Reply
Map
View

Click here to load this message in the networking platform