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.