Oracle Unicode field size
Posted: Sun 13 Nov 2011 19:42
we have an Oracle DB with NLS_CHARACTERSET = AL32UTF8
and set in SpecificOptions: UseUnicode = true
the problem is: when a field is declared as VARCHAR2(1 CHAR), the value of TWideStringField.Size is 4.
Is it possible to get the declared size in characters?
Better: set the 'correct' value to TWideStringField.Size
This would also fit the definition of TStringField in Delphi Help (ftString | Size is the maximum number of characters in the string).
and set in SpecificOptions: UseUnicode = true
the problem is: when a field is declared as VARCHAR2(1 CHAR), the value of TWideStringField.Size is 4.
Is it possible to get the declared size in characters?
Better: set the 'correct' value to TWideStringField.Size
This would also fit the definition of TStringField in Delphi Help (ftString | Size is the maximum number of characters in the string).