Subject | Re: fail when checking VarChar variable <> '' |
---|---|
Author | Rick Roen |
Post date | 2006-12-07T17:23:35Z |
No the problem is not in the if body.
If I eliminate the test altogether, the procedure does not fail.
Even if I do nothing inside the body of the if statement, it fails on
the if (InternalMemo <> '') line.
Rick
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@...> wrote:
If I eliminate the test altogether, the procedure does not fail.
Even if I do nothing inside the body of the if statement, it fails on
the if (InternalMemo <> '') line.
Rick
--- In firebird-support@yahoogroups.com, "Ivan Prenosil"
<Ivan.Prenosil@...> wrote:
>is
> > I have a mysterious failure in an SP when I check if a variable
> > blank.truncation"
> >
> > I get a "arithmetic exception, numeric overflow, or string
> > when I test for InternalMemo <> ''.like this:
> >
> > InternalMemo is VarChar(2000) and is filled from a memo field
> > Select...<field list>something by:
> > Coalesce(SubString(O.MEMO_INTERNAL From 1 For 1990),'')
> > into ... InternalMemo
> >
> > Then later in the procedure I check to see if it contains
> > if (InternalMemo <> '') then
> > ...do something
> >
> > But I get the error at the "If" test
>
> Isn't problem somewhere in the "...do something" part ?
>
> Ivan
>