I copied and re-converted the qbw from 2007 version to 2008. I then ran the tests again. I still cannot use the function in the where clause. Here is what I see in logs:
2008-01-17 17:20:51 QODBC Ver: 8.00.00.240 *********************************************************************************************************************
IsAService: False
Error Code: 1
SQLOptimize_ExecuteNonQuery prepare:
CREATE TABLE "item" AS SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isactive" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
2008-01-17 17:20:51 QODBC Ver: 8.00.00.240 *********************************************************************************************************************
IsAService: False
Error Code: -1
SQLOptimize_SQLOpen create table:
CREATE TABLE "item" AS SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isactive" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
20080117.171920 I 1580 RequestProcessor ========= Started Connection =========
20080117.171920 I 1580 RequestProcessor Request Processor, QBXMLRP2 v7.0
20080117.171920 I 1580 RequestProcessor Connection opened by app named 'FLEXquarters QODBC'
20080117.171920 I 1580 CertVerifier The Authenticode signature validated OK.
20080117.171920 I 1580 RequestProcessor Opening the file in the DoNotCare mode.
20080117.171921 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 1580).
20080117.171921 I 2916 SpecVersion Current version of qbXML in use: 7.0
20080117.171921 I 2916 QBSDKMsgSetHandler QUERY: Host
20080117.171921 I 2916 QBSDKMsgSetHandler Request 1 completed successfully.
20080117.171921 I 2916 QBSDKMsgSetHandler QUERY: Company
20080117.171921 I 2916 QBSDKMsgSetHandler Request 2 completed successfully.
20080117.171921 I 2916 QBSDKMsgSetHandler QUERY: DataExtension Definition
20080117.171921 I 2916 QBSDKMsgSetHandler Request 3 completed successfully.
20080117.171921 I 2916 MsgSetHandler Finished.
20080117.171921 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 1580), ret = 0.
20080117.171924 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 1580).
20080117.171924 I 2916 SpecVersion Current version of qbXML in use: 7.0
20080117.171924 I 2916 QBSDKMsgSetHandler QUERY: Customer Job
20080117.171924 I 2916 CustomerStorage::DoQuery Setting iterator chunk size to 00000500
20080117.171924 I 2916 QBSDKMsgSetHandler Request 1 completed successfully.
20080117.171924 I 2916 MsgSetHandler Finished.
20080117.171924 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 1580), ret = 0.
20080117.171925 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 1580).
20080117.171925 I 2916 SpecVersion Current version of qbXML in use: 7.0
20080117.171925 I 2916 QBSDKMsgSetHandler QUERY: List Delete
20080117.171925 I 2916 QBSDKMsgSetHandler Request 1 completed successfully.
20080117.171925 I 2916 MsgSetHandler Finished.
20080117.171925 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 1580), ret = 0.
20080117.172050 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' starting requests (process 1580).
20080117.172050 I 2916 SpecVersion Current version of qbXML in use: 7.0
20080117.172050 I 2916 QBSDKMsgSetHandler QUERY: Item
20080117.172050 I 2916 ItemsStorage::DoQuery Setting iterator chunk size to 00000500
20080117.172050 E 2916 ItemServiceStorage::BuildTheRetObject This feature is not enabled or not available in this version of QuickBooks. HRESULT=0x80040527
20080117.172050 I 2916 QBSDKMsgSetHandler Request 1 completed successfully.
20080117.172050 I 2916 MsgSetHandler Finished.
20080117.172050 I 2916 QBSDKProcessRequest Application named 'FLEXquarters QODBC' finishing requests (process 1580), ret = 0.
ISAMNextRecord
0x0030CA00 [ISAM]
0x070A4008 [item]
Optimizer Passthrough: TRUE
Optimized SQL 1: SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isactive" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
Optimized SQL 2: SELECT "ROWID", "FQALIAS_1" FROM "Item"
Optimize SQL:
SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isacti
ve" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
Optimize SQL2:
SELECT "ROWID", "FQALIAS_1" FROM "Item"
2008-01-17 17:20:51 QODBC Ver: 8.00.00.240 *********************************************************************************************************************
IsAService: False
Error Code: 1
SQLOptimize_ExecuteNonQuery prepare:
CREATE TABLE "item" AS SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isactive" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
2008-01-17 17:20:51 QODBC Ver: 8.00.00.240 *********************************************************************************************************************
IsAService: False
Error Code: -1
SQLOptimize_SQLOpen create table:
CREATE TABLE "item" AS SELECT "item"."fullname" AS "FQALIAS_1" FROM "Item" WHERE ((CAST("item"."isactive" AS INTEGER) <> 0) AND (LOWER, "item"."fullname") IN ('b', 'bb')))
ISAM_EOF S0000 S0000 [QODBC] No data found
ISAMNextRecordExit
I don't get this line if I don't use the function:
20080117.172050 E 2916 ItemServiceStorage::BuildTheRetObject This feature is not enabled or not available in this version of QuickBooks. HRESULT=0x80040527
In this test 2008 environment I am using a trial version of QODBC and a not for resale version of Quickbooks. Could either of these be a factor? Also, I am running this environment on Server 2003 R2 64bit.
I wish mine worked like yours, then it wouldn't be a mystery.
Thanks,