Another thought ... "digits" is a varchar2 column, not a number() right?