Hello,
you cannot use single quotation around the context variable in the SQL statement.
As per my test, when parse the context variable, it will add single quote around the value,
ie.
... lower ('${something}') ...
will be parsed to,
... lower (''******'') ...
That will cause syntax error.
to compare, without the quotation,
... lower (${something}) ...
will be parsed to,
... lower ('******') ...
which is in correct syntax.
Regards,
Mark