SQLGetData() Returns SQL_NO_TOTAL in RFX_LongBinary() (132399)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++ for Windows, 16-bit edition 1.52
- Microsoft Visual C++, 32-bit Editions 2.1
- Microsoft Visual C++, 32-bit Editions 4.0
This article was previously published under Q132399 SUMMARY An assertion may occur in RFX_LongBinary() if an ODBC
driver returns a value of SQL_NO_TOTAL (-4) in the location pointed to by
plLength after calling SQLGetData(). The MFC RFX_LongBinary() function assumes
that an ODBC driver won't return SQL_NO_TOTAL from SQLGetData(). This is by
design. If you must use RFX_LongBinary() to map a binary field to a CLongBinary
variable, use the RFX_LongBinary() function in BLOBRFX.EXE. BLOBRFX.EXE, a
self-extracting file, contains two files: BLOBRFX.CPP and BLOBRFX.H.
BLOBRFX.CPP contains an RFX_LongBinary2() function, which can be used in place
of RFX_LongBinary() in your CRecordset's DoFieldExchange() function. BLOBRFX.H
contains the prototype for the RFX_LongBinary2()
function. Blobrfx.exe For additional information about how
to download Microsoft Support files, click the following article number to view
the article in the Microsoft Knowledge Base: 119591 How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
NOTE: If you are using a precompiled header in your project, you may
want to add the following line of code to the top of BLOBRFX.CPP:
#include "stdafx.h"
This behavior is by design. This problem was corrected in Visual C++
version 4.2 and above. MORE INFORMATIONREFERENCES The ODBC Programmer's Reference in the Visual C++ Online
Books provides information about SQLGetData().
Modification Type: | Minor | Last Reviewed: | 8/5/2004 |
---|
Keywords: | kbdownload kbDatabase kbfile kbfix kbprb kbProgramming KB132399 kbAudDeveloper |
---|
|