Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
Problem with a complex select statement using RList
Has anyone had problems in v. 9 using a complex select statement with RList? I did this all the time in 8.3 and never had a problem, but in v. 9, the following select statement:
SelStatement = "SELECT TICKETS WITH PAYMENT_RECEIVED # 1 AND WITH DELIVERY_DATE BETWEEN '":Starting_Date
SelStatement:= "' AND '":Ending_date:"' AND WITH LAST_STATUS # 'Voided' "
run with RList(SelStatement, 5, "", "")
does not limit by the delivery date but selects all records in the table. Note that the Delivery_Date field has a Btree Index on it.
SelStatement = "SELECT TICKETS WITH PAYMENT_RECEIVED # 1 AND WITH DELIVERY_DATE BETWEEN '":Starting_Date
SelStatement:= "' AND '":Ending_date:"' AND WITH LAST_STATUS # 'Voided' "
run with RList(SelStatement, 5, "", "")
does not limit by the delivery date but selects all records in the table. Note that the Delivery_Date field has a Btree Index on it.
Comments
Before we go running down a false bunny trail, can you confirm that a simple Select statement based on the DELIVERY_DATE column works? In other words, do we have confirmation that this index is working properly on its own?
Also, I seem to recall from another correspondence that this might be a new workstation (or a new hard drive)? Did you run the client setup after getting the new hardware?
I know you said you rebuilt the index, but how is your dictionary configured? What Conversion pattern are you using? What is the length?
Beyond this, it would be hard to navigate you any further. Others might have different ideas but that's where I'm at with your problem.