Subject Small bug in PLAN retrieval?
Author Martijn Tonies
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."