If the maxLength and scale are not null, perform the check and rescale.