PRB: CDBVariant Contains Wrong BOOL Value When Calling CRecordset::GetFieldValue() (230491)
The information in this article applies to:
- Microsoft Visual C++, 32-bit Enterprise Edition 6.0
- Microsoft Visual C++, 32-bit Professional Edition 6.0
- Microsoft Visual C++, 32-bit Learning Edition 6.0
This article was previously published under Q230491 SYMPTOMS When calling the CRecordset::GetFieldValue() method that
accepts a CDBVariant object as a parameter and the target field in the database
is a bit field, the BOOL value (m_boolVal) is incorrect. RESOLUTION Use an explicit type other then SQL_C_BIT, such as
SQL_C_UTINYINT or SQL_C_SLONG, as the type of variable to bind to.
Please see the More Information for details. STATUS Microsoft has confirmed this to be a problem in the
Microsoft products listed at the beginning of this article.
Modification Type: | Major | Last Reviewed: | 11/18/2003 |
---|
Keywords: | kbDatabase kbprb KB230491 kbAudDeveloper |
---|
|