Page 1 of 1

TOCICommand.GetFieldDesc8 Bug?

Posted: Sun 15 Jun 2008 03:38
by ughost
...
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;

Posted: Tue 17 Jun 2008 09:14
by Challenger
The size of the column in bytes depends on the database charset and may differ from the size in chars.