OLEDB 11.2.0.1: DBColumnInfo->ulColumnSize shows wrong length (BYTES instead CHAR) for NVARVCHAR column when RDBMS parameter nls_length_semantics = CHAR (Doc ID 1136838.1)

Last updated on MAY 24, 2012

Applies to:

Oracle Provider for OLE DB - Version 11.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Using OLEDB 11.2.0.1 against database using init.ora parameter

nls_length_semantics = CHAR


and retrieve column information for a NVARCHAR column using

DBColumnInfo->ulColumnSize


returns maximum lengh for BYTES - not CHAR.

I.e. if NVARCHAR(40) is defined, return value is 80 (2*40) instead expected 40

Using OLEDB 11.1.0.7 and lower correct values for DBColumnInfo->ulColumnSize returned.

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms