Posted By: NDzubiel Unicode - wrong string length - 05/11/11 11:59 AM
Hello,

if I access a unicode database DOA will return a wrong
string length. E.g. if the Field is defined with 40 characters I will get a length of 160. (These are the bytes used within Oracle - not the Delphi string length).

Any plans to correct this ?`

Nils
Posted By: Marco Kalter Re: Unicode - wrong string length - 05/12/11 09:42 AM
Have you enabled TOracleDataSet.OracleDictionary.CharacterSize?
Posted By: NDzubiel Re: Unicode - wrong string length - 05/12/11 08:29 PM
Well, this helps -
just a small problem -
how to set this flag in all Queries within
my software .... 4200 changes in 577 files ?!
Is there any global option ?

Nils
Posted By: Marco Kalter Re: Unicode - wrong string length - 05/13/11 09:43 AM
There is no global option, but you could:
  • Derive your own TOracleDataSet and change the default
  • If you have the source code: change the default in OracleData.pas
  • Iterate the components at run-time in OnCreate event handlers
  • Run a macro on the .dfm files
© Allround Automations forums