bug6149: IDB-2015: Sorting length exceeded.
Made check in fix_length_and_dec() for lpad and rpad as repeat.