Problem with parameters after 6.2.7 update
Posted: Sun 13 Sep 2015 15:57
Hi,
My app was working fine with 6.1.6 (and many versions since 5.x) until I updated to 6.2.7 (Delphi XE6)
I'm using conditional macros in my queries, as shown in this example
I add the macros "FILTERING" and "EXCLUDEDEBITS" and then assign the query to the SQL.Text property. The problem is that I get "Parameter not found" error when setting a value for "ENGLISH_DESCRIPTION".
If I skip the parameter setting part of the code, I get this error when opening the query syntax error at or near ":"
This is existing code that has worked all the while until 6.2.7.
Please investigate and see if you can shed any light on this.
Thank you.
My app was working fine with 6.1.6 (and many versions since 5.x) until I updated to 6.2.7 (Delphi XE6)
I'm using conditional macros in my queries, as shown in this example
Code: Select all
SELECT COUNT(*) AS RECORD_COUNT
FROM FINANCIAL_CODES F
WHERE F.DATASET_ID = :DATASET_ID
{IF FILTERING}
AND F.ENGLISH_DESCRIPTION ILIKE :ENGLISH_DESCRIPTION
AND F.AFRIKAANS_DESCRIPTION ILIKE :AFRIKAANS_DESCRIPTION
{IF EXCLUDEDEBITS}
AND F.CODE_TYPE <> :DEBIT_CODE_TYPE
{ENDIF}
{IF EXCLUDECREDITS}
AND F.CODE_TYPE <> :CREDIT_CODE_TYPE
{ENDIF}
{ENDIF}
If I skip the parameter setting part of the code, I get this error when opening the query syntax error at or near ":"
This is existing code that has worked all the while until 6.2.7.
Please investigate and see if you can shed any light on this.
Thank you.