Lazarus + Zeos + Firebird Query wrong Field.Size

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
Mando
Fresh Boarder
Fresh Boarder
Posts: 16
Joined: 15.09.2010, 12:32

Lazarus + Zeos + Firebird Query wrong Field.Size

Post by Mando »

Hi all.

I've a Firebird DB wich I handle with an application made in Lazarus with Zeos.

When I check the file.size of a string field of a table using a TZQuery, I get the file.size multiplied by 4.
I thought it was because the database was in UTF8, but I tried the compoent TZTable and got his true size.

DDL
...
CAMPO1 char(6),
...

zQuery1.fieldByName('CAMPO1').size -> returns 24 (6x4)

zTable1.fieldByName('CAMPO1').size -> returns 6

Is there any solution for it?

regards.
Post Reply