Details
Assignee
Igal SapirIgal SapirReporter
Igal SapirIgal SapirPriority
NewNew Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Details
Details
Assignee
Igal Sapir
Igal SapirReporter
Igal Sapir
Igal SapirPriority
New Issue warning screen
Before you create a new Issue, please post to the mailing list first https://dev.lucee.org
Once the issue has been verified, one of the Lucee team will ask you to file an issue
Affects versions
Created 21 November 2020 at 03:10
Updated 23 November 2021 at 11:00
::
is a Cast Operator in Postgres, e.g.current_timestamp::text
is a shorthand forcast(current_timestamp as text)
.But when Lucee sees that operator and params are passed, it tries erroneously to parse the operator as a param and fails with an error.
So while this works as expected:
sqlStmt = " select current_timestamp::text as curr_ts; "; query name="q" sql=sqlStmt;
This fails with error:
sqlStmt = " select current_timestamp::text as curr_ts; "; params = {}; query name="q" sql=sqlStmt params=params;