Hello all!
I've encountered a strange behavior of SELECT when trying to query few tables (.dbf) created and maintained with a Delphi application. To be more specific:
I have two tables, let it be "TABLE1.DBF" and "TABLE2.DBF", created and used by a Delphi application. I'm trying to select some records from them, using VFP, using a SQL statement like this:
If the two tables are closed, then the query returns 0 (zero) rows. If tables are open before performing SELECT, then the query returns correct number of rows.
Also, it seem that "NOT DELETED()" condition from WHERE clause isn't respected (there are SELECT-ed both deleted and not deleted rows). I have to issue a "SET DELETED ON" before SELECT to obtain only not deleted rows.
This things are happening in VFP 6, SP 5.
Any ideeas?
Thank you in advance!
worky
I've encountered a strange behavior of SELECT when trying to query few tables (.dbf) created and maintained with a Delphi application. To be more specific:
I have two tables, let it be "TABLE1.DBF" and "TABLE2.DBF", created and used by a Delphi application. I'm trying to select some records from them, using VFP, using a SQL statement like this:
Code:
SELECT some_fields ;
FROM table1, table2 ;
WHERE join_condition AND ;
some_other_conditions AND ;
NOT DELETED() ;
ORDER BY some_field ;
INTO TABLE result
If the two tables are closed, then the query returns 0 (zero) rows. If tables are open before performing SELECT, then the query returns correct number of rows.
Also, it seem that "NOT DELETED()" condition from WHERE clause isn't respected (there are SELECT-ed both deleted and not deleted rows). I have to issue a "SET DELETED ON" before SELECT to obtain only not deleted rows.
This things are happening in VFP 6, SP 5.
Any ideeas?
Thank you in advance!
worky