The information in this article applies to:
SUMMARYThere is inconsistency in the OLE DB 2.0 Programmer's Reference that is included with Visual Studio version 6.0 regarding the value of the length part when a field returns with a status of DBSTATUS_S_ISNULL. MORE INFORMATIONIn Chapter 6, in the topic "Data Transfer Procedures", the following is mentioned with regards to what the provider should do: If it is, the provider sets the status to DBSTATUS_S_ISNULL or VT_NULL, sets the length to zero, ignores the value, and proceeds to the next column or output parameter.In Chapter 6, in the subtopic "Status", it states: If the data value is not to be used, the status is set to DBSTATUS_S_ISNULL or DBSTATUS_S_DEFAULT. DBSTATUS_S_ISNULL indicates that a NULL value is to be used for the column or parameter; the data value and length are ignored.The documentation is corrected in the Microsoft Press OLE DB 2.0 Programmer's Reference. The documentation correction follows: If it is, either the provider sets the status to DBSTATUS_S_ISNULL and ignores the value and length or the provider sets the status to DBSTATUS_S_OK and sets the value to VT_EMPTY. The provider then proceeds to the next column or output parameter." Additional query words:
Keywords : kbdocfix kbDatabase kbOLEDB |
Last Reviewed: November 10, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |