If you create a web service security record with a Filter such as:
AD_User_ID = @#AD_User_ID@
The context variable is returned as a String by the method:
val = getCompiereService().getCtx().getProperty(varName);
raising the error " ERROR: operator does not exist: numeric = character varying" when the sql runs
attached you can find the patch that solved this bug