Eggie,
Looking at my code I can not see why this would be happening. I have code in place to test if the expression is a string then it ill wrap all values with a single quote:
/*If the expression is an IN Statement and the the value is a string then
replace the user defines comma seperated values with single quoted values*/
if (queryExpr.toLowerCase().indexOf(" in (") > 0 && queryExpr.toLowerCase().indexOf("'[value]'") > -1) {
//replace the begining and trailing single qoutes if they exist
eVal = eVal.replace(/^'|'$/g, "").replace(/,|','/g, "','");
}
So the check is if the layers expression has '[value]' then it is a string expression.
i.e. the config_Enhanced Search.json has
"sqltext": "DOCNAME = '[value]'",
"operation": "stringOperatorIs",