Subject Re: SV: [IBO] no return message of error in contraint of type check
Author Magni Thor Mortensen
The problem is that UserExceptIndex isn't initialized.
Putting "UserExceptIndex := 0;" above line 8299 fixes the problem.

but I have no Idea why SQLCODE = -836 (exception) is handled differently.

Regards
Magni

George wrote:
>
> --- In IBObjects@yahoogroups.com <mailto:IBObjects%40yahoogroups.com>,
> "Magnus Johansson" <trans-x@...>
> wrote:
> >
> > > When the firebird provokes an exception of type check the
> ibobject now
> > > he does not return the type of produced error, with which it is
> not
> > > possible to know that contraint of type check to given the error
> > >
> >
> > If you have the source to 4.6.Bc you can change line 8300 in
> IBODataset.pas
> > from
> > if ( ErrorMessage.Count > 5 ) then
> > to
> > if ( ErrorMessage.Count > 7 ) then
> >
> > Rebuild and see if that helps.
> >
> > /Magnus
> >
>
> I have taken the line of least resistance and put a break at line
> 8298 of IBODataset.pas. Inspecting ErrorMessage.Text gives the error.
>
> Cheers
>
> George
>
>