Subject Re: [IBO] Small bug in PLAN retrieval?
Author Jason Wharton
I wonder if something has changed with the IB API...
Please send me the code fix privately.

Kind regards,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com

-- We may not have it all together --
-- But together we have it all --


----- Original Message -----
From: "Martijn Tonies" <m.tonies@...>
To: <ibobjects@yahoogroups.com>
Sent: Thursday, September 12, 2002 5:16 AM
Subject: [IBO] Small bug in PLAN retrieval?


> Hi all,
>
> I've been looking at the PLAN that IBO returns from the server -
> and in IB_Session.pas:
>
> function GetStatementPlanFromHandle( st_hnd: pisc_stmt_handle ): string;
> --8<--
> StrLCopy( PChar(Result), @PlanBuffer[4], PlanLen - 1 );
> --8<--
>
> The plan string is copied to the resulting string - but why from
> PlanBuffer[4]
> and not PlanBuffer[3] (like in IBExpress). I had a plan that missed a
> character
> "(" - and it displayed fine on IBX ... and it messed up the plan parser
I'm
> using :)
>
> Comments?
>
>
>
> With regards,
>
> Martijn Tonies
> InterBase Workbench - the developer tool for InterBase
> http://www.upscene.com
>
> Firebird Workbench - the developer tool for Firebird
> http://www.upscene.com
>
> Upscene Productions
> http://www.upscene.com
>
> "This is an object-oriented system.
> If we change anything, the users object."