BUG: Oledb32.dll Truncates Data at the Embedded Null-termination Character if a Column Is Bound to DBTYPE_WSTR (313925)
The information in this article applies to:
- Microsoft Data Access Components 2.1
- Microsoft Data Access Components 2.5
- Microsoft Data Access Components 2.6
- Microsoft Data Access Components 2.7
This article was previously published under Q313925 SYMPTOMS
When an embedded null-termination character in a varchar column is bound to an OLEDB DBTYPE_WSTR data type,
OLE DB Core Services Oledb32.dll truncates the data at the null-termination character.
RESOLUTION
To work around this problem, bind the column that contains a null-termination character to a DBTYPE_BSTR data type that allows embedded nulls.
STATUSMicrosoft has confirmed that this is a bug in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 5/12/2003 |
---|
Keywords: | kbBug kbfix KB313925 |
---|
|