Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 1886
Message
From
18/05/2004 09:50:22
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00904586
Message ID:
00904902
Views:
13
This is a bug.

This occur on any command that call the C++ VFP _DBSeek routine.
SEEK
KEYMATCH
SELECT ... Indexkey=valueNull
but not on the JOIN ... ON clause because VFP trap the NULL value before call the _DBSeek routine.

I Think this occurs because
if the index key not support NULL,
VFP build a INDEX without the null tag byte.

Then VFP check if the search value is null,
and fire a Error, but this is a poor logic because
IF VFP C++ CODE CATCH THIS ERROR,
THEN IT CAN CATCH THIS LIKE A SEEK UNKNOW AND RETURN THE SQL92 CORRECT VALUE .NULL.

without change the index structure!

I hope VFP9 fixed it.

Fabio
Previous
Reply
Map
View

Click here to load this message in the networking platform