[fpc-pascal] Re: SQLDB/Firebird unable to open table with more than 128 fields

Joost van der Sluis joost at cnoc.nl
Sun Mar 22 11:08:29 CET 2009

Op zondag 22-03-2009 om 17:37 uur [tijdzone +0800], schreef Funky Beast:
> I found the culprit.
> In TIBConnection.PrepareStatement's variable section, x was declared
> as a shortint
> which would cause problem when its used for allocating memmory for the
> SQLVAR elements,
> when there are more than 128 fields.
> Also same as above in TIBConnection.FreeSQLDABuffer.
> I changed var x in both location into smallint and everything worked
> fine for me.

You are sure that a smallint is large enough in all cases? 

> I'm not sure weather it will impact any parts of TIBConnection, so
> I will leave it to the fcl-db governors to decide. 

Can you attach a patch to the bug-report? And maybe give your real name
so we can add that to the svn-log? (In the case that 'Funky Beast' is
your real name, my apologies. ;) )


More information about the fpc-pascal mailing list