SYMPTOM:
"invalid relational operator" error message appears when executing a report with Case syntax defined in ApplySimple function in the attribute form expression in Strategy against Oracle database as shown below:

QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. ORA-00920: invalid relational operator Connection String: DSN=XXX; UID=YYY;
The following steps demonstrate how to reproduce the issue in tutorial project:

ApplySimple("Case when #0 1907 then 'Daily' else 'Weekly' END", )

QueryEngine encountered error: Execute Query failed. Error type: Odbc error. Odbc operation attempted: SQLExecDirect. ORA-00920: invalid relational operator Connection String: DSN=XXX; UID=YYY;
CAUSE:
The cause for this issue is that equal sign "=" is lost in the syntax of Case function.
ACTION:
Add equal sign to get the correct syntax of Oracle Case function in ApplySimple function as shown below:
ApplySimple("Case when #0=1907 then 'Daily' else 'Weekly' END", )
After updating schema, the report works fine as shown below:
