change type of maxresult field (#1106)