My Colleagues are trying to add an index on the FoxPro Database to help in a completely separate application. One that does not use your driver, but every attempt they have made has failed. Please read the error messages below. The error messages occur when I use your driver to run a simple query on the MODET table in the database.
Do you have any suggestions or comments?
Each set of error messages represents different indexes. The first line of each set of error messages is the new index they are trying to add.
Error Messages:
Error code 270336, SQL state 42000: Can't parse index expression BETWEEN(status,"3","5").AND.zprtype="COMP"
Error code 270336, SQL state 42000: Can't parse BETWEEN(status,"3","5").AND.zprtype="COMP"!
Error code 172032, SQL state 2A000: Syntax error: Stopped parse at .(id21)
Error code 270336, SQL state 42000: Can't parse index expression BETWEEN(status,"3","5").AND.zcomp=.T.
Error code 270336, SQL state 42000: Can't parse BETWEEN(status,"3","5").AND.zcomp=.T.!
Error code 172032, SQL state 2A000: Syntax error: Stopped parse at .(id21)
Error code 270336, SQL state 42000: Can't parse index expression BETWEEN(status,"3","5").AND.INLIST(desc,"COMPR")
Error code 270336, SQL state 42000: Can't parse BETWEEN(status,"3","5").AND.INLIST(desc,"COMPR")!
Error code 172032, SQL state 2A000: Syntax error: Stopped parse at .(id21)
Error code 270336, SQL state 42000: Can't parse index expression BETWEEN(status,"3","5").AND.LIKE("COMPR*",desc)
Error code 270336, SQL state 42000: Can't parse BETWEEN(status,"3","5").AND.LIKE("COMPR*",desc)!
Error code 172032, SQL state 2A000: Syntax error: Stopped parse at .(id21)
Error code 270336, SQL state 42000: Can't parse index expression BETWEEN(status,"3","5").AND.SUBSTR(ALLTRIM(desc),1,5)="COMPR"
Error code 270336, SQL state 42000: Can't parse BETWEEN(status,"3","5").AND.SUBSTR(ALLTRIM(desc),1,5)="COMPR"!
Error code 172032, SQL state 2A000: Syntax error: Stopped parse at .(id21)
|
Try
zprtype="COMP" .AND. BETWEEN(status,"3","5")
to avoid between (expr1) and expr2
|
Looks like that worked. Thanks so much.
|