On Fri, 21 Mar 2014 16:23:38 +0100, Dimitry Sibiryakov <[email protected]>
wrote:
> 21.03.2014 14:29, Mark Rotteveel wrote:
>> AFAIK the length is the maximum length (in bytes) of the field, not of
>> the
>> buffer.
> 
>    What do you call "field length"? In ODS (AFAIK) VARCHAR is kept with
>    these two extra
> bytes as well, so maximum length of filed on disk and in memory is two
> bytes bigger that 
> returned by getLength().

With field length I mean the declared length (for single byte character
sets) or 4*declared length for UTF8), eg VARCHAR(500): declared length is
500, not 502.

Mark

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
Firebird-Devel mailing list, web interface at 
https://lists.sourceforge.net/lists/listinfo/firebird-devel

Reply via email to