Why does StringField.Size change after opening smartquery?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
jz
Posts: 8
Joined: Fri 04 Jan 2008 14:14

Why does StringField.Size change after opening smartquery?

Post by jz » Fri 04 Jan 2008 14:19

I've got table with varchar2 field (length - 10 chars), why does Size property of StringField (field of smartquery) change always to 40 (i tried with 15 chars, it was 60 then, so it's always multiplied 4 times).

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 08 Jan 2008 16:41

Size property of TStringField is size of the field in bytes. So if your database have multibytes character set, TStringField.Size contains size in characters multiplied on size of one character.

Post Reply