When trying to access information in the PERSON table I get the following errors from the driver. I have tried both 2.0 and 3.0 software versions. I think this use to work?
05/15 11:43:31.67 Debug(TPConnection):ExecuteQuery. Person query:SELECT P_PERKEY, P_ATYPE, P_ACOUNT, P_DISPLAY, P_NAME, P_DOB, P_STREET, P_CITY, P_STATE, P_ZIP, P_COUNTRY, P_PHONE, P_CURRENTA, P_ADDRDATE, P_TYPE, P_RACE, P_SEX, P_HAIR, P_EYES, P_HEIGHT, P_WEIGHT, P_DLNO, P_DLSTATE, P_SSNO, P_FBINO, P_SIDNO, P_PHOTO, P_PHOTDATE FROM PERSON WHERE P_NAME ILIKE 'BETZ%' and P_SEX='F'
05/15 11:43:31.69 Error: ExecuteQuery. Retry:4 Caught exception:
java.sql.SQLException: Can't parse index expression PadR(ExtractData(P_DLNo), 25) + upper(P_DLState)
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.dbf.v.a(Unknown Source)
at com.hxtt.sql.dbf.b.do(Unknown Source)
at com.hxtt.sql.dbf.b.(Unknown Source)
at com.hxtt.sql.dbf.b.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.(Unknown Source)
at com.hxtt.sql.dbf.DBFIndex.a(Unknown Source)
at com.hxtt.sql.dbf.i.a(Unknown Source)
at com.hxtt.sql.dbf.d.a(Unknown Source)
at com.hxtt.sql.dbf.d.(Unknown Source)
at com.hxtt.sql.dbf.u.a(Unknown Source)
at com.hxtt.sql.be.if(Unknown Source)
at com.hxtt.sql.cx.a(Unknown Source)
at com.hxtt.sql.cx.a(Unknown Source)
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.ab.executeQuery(Unknown Source)
Do you have any ideas?
I also tried to reindex manually (after the customer used the options in the application to reindex) Still same error?
05/15 11:36:21.74 Debug(GlobalLEIN_emudps):ExecuteQuery. reindex:REINDEX ALL ON PERSON;
05/15 11:36:21.75 Debug(TPConnection):ExecuteQuery. reindex:REINDEX ALL ON PERSON;
05/15 11:36:22.00 Error: ExecuteQuery. Retry:0 Caught exception:
java.sql.SQLException: Failed to reindex file for Can't parse index expression PadR(ExtractData(P_DLNo), 25) + upper(P_DLState)
at com.hxtt.global.SQLState.SQLException(Unknown Source)
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.be.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.ab.a(Unknown Source)
at com.hxtt.sql.ab.executeUpdate(Unknown Source)
Richard DeMello
|
That's resulted by an unknown function ExtractData(P_DLNo). What's your ExtractData function? You need to read Extend SQL functions
. After complemented that ExtractData function, HXTT DBF can index/reindex that index normally. If you don't know to extend SQL function, please let us know that meanings of ExtractData, then we will show you a sample.
|