declex icon indicating copy to clipboard operation
declex copied to clipboard

Error in passed query

Open smaugho opened this issue 7 years ago • 0 comments

When passing as parameter a query into an action, for instance:

$LoadModel(model).query("name LIKE '" + name + "'");

The string is parsed incorrectly for the Actions Parser as "name LIKE \\\'" + name + "\\\'", the only workaround to avoid the "\\\" there is declaring the query as a variable:

String query = "name LIKE '" + name + "'";
$LoadModel(model).query(query);

smaugho avatar May 23 '17 09:05 smaugho