Thanks it works with queries even if it looking odd, but that approach
seems to be doesn’t work with store procedure call “cfstoredproc” , is
there any advice for that part?
Thank you!On Sunday, December 6, 2015 at 12:09:44 AM UTC-5, mark wrote:
Typcast the query,
select id from ttbl where fieldone= ::boolean
notice you do not need the CF_SQL_ prefix.
QueryExecute is a whole different story,
Params = [{value = "TRUE", cfsqltype = "varchar"}];
testSQL = "select id from ttble where fieldone = ? ::boolean";
testbool = QueryExecute(testSQL, Params);
Lucee thinks the :: double colons are query params? if someone knows a
workaround for that please let me know,
or using the “other” datatype should work removing the ::boolean cast.
Params = [{value = “TRUE”, cfsqltype = “other”}];
testSQL = “select id from ttble where fieldone = ?”;
testbool = QueryExecute(testSQL, Params);