Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using SELECT-SQL on buffered table
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Using SELECT-SQL on buffered table
Miscellaneous
Thread ID:
00432534
Message ID:
00432534
Views:
54
Using VFP5.

I have a table that uses pessimistic table buffering (and is filtered). Before the user saves the data, I want to check for certain things like duplicate address, etc. I use a Select statment to do this:
select address, count(*) from gal ;
	where fbatch=galtrack.batch and !deleted() ;
	group by address having count(*) > 1 ;
	into cursor checkdup
What I have found is that the SQL statement is actually looking at the data on disk, not what's in the buffer. Because If there is a duplicate address and you fix it, the SQL statement still reports that there is a duplicate. Am I loosing it, or is this a known problem? If this is a known problem, anyone got an alternative idea?

Thanks.
Next
Reply
Map
View

Click here to load this message in the networking platform