Subject RE: [IBO] TIBOQuery 4.5Ah parameter bug?
Author Jason Wharton
Ed,

I've got it resolved finally!

AssignSQLWithSearch when using TIBODataset with params was broken by the
following code:

procedure TIBOInternalDataset.SysStoreParamValueLinks;
begin
// This is not needed with TParams to have the value persist.
{Adding the line below makes it work properly.}
inherited SysStoreParamValueLinks;
end;

procedure TIBOInternalDataset.SysRestoreParamValueLinks;
begin
// This is not needed with TParams to have the value persist.
{Adding the line below makes it work properly.}
inherited SysRestoreParamValueLinks;
end;

Please go into your IBODataset.pas unit and at the very end of it add those
two lines above and it should work exactly as it should. I have no idea now
why I deliberately put in the override to prevent that mechanism from
working. I'm pretty sure it was merely an attempt to get faster performance
only so by putting it back in there should be no ill effects.

Jason Wharton


> -----Original Message-----
> From: Ed Dressel [mailto:dressel@...]
> Sent: Friday, January 28, 2005 3:08 PM
> To: IBObjects@yahoogroups.com
> Subject: Re: [IBO] TIBOQuery 4.5Ah parameter bug?
>
>
>
>
> > I use AssignSQLWithSearch to initialize TIBOQuery. After installing
> > 4.3Aa I noticed that all my TIBOQuery that have parameters
> gave back
> > 0 records. Without parameters they work OK.
> > I downloaded the latest IBO (4.5Ai) to test and the error is still
> > not fixed there.
>
> do you have an example of this? 4.5Ai fixes a bug I was having in 4.3
> and I really don't want to go back.
>
> thanks
> Ed Dressel