TOCICommand.GetFieldDesc8 Bug?

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ughost
Posts: 1
Joined: Sat 14 Jun 2008 04:32

TOCICommand.GetFieldDesc8 Bug?

Post by ughost » Sun 15 Jun 2008 03:38

...
Check(OCIAttrGet2(hParam, OCI_DTYPE_PARAM, ValuePtr, nil, OCI_ATTR_DATA_SIZE, hOCIError));
DataSize := sb2(ValuePtr);
...
Oreacle DB Table Field Size is 15 DataSize return '60'
Oreacle DB Table Field Size is 200 DataSize return '800'
Oreacle DB Table Field Size is 50 DataSize return '200'
...
Why?
My Oracle Client and Server version is 10g;OS is Window XP en;

Challenger
Devart Team
Posts: 925
Joined: Thu 17 Nov 2005 10:53

Post by Challenger » Tue 17 Jun 2008 09:14

The size of the column in bytes depends on the database charset and may differ from the size in chars.

Post Reply