Fixes queries with like on integer columns (i.e. ...?id~370%, ...?id~370).