Page 1 of 1

Lazarus + Zeos + Firebird Query wrong Field.Size

Posted: 24.02.2011, 11:14
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.