declex
declex copied to clipboard
Error in passed query
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);