FIX: Dirty Flag Not Cleared During Edit() or Update() (159956)
The information in this article applies to:
- The Microsoft Foundation Classes (MFC), when used with:
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2
- Microsoft Visual C++, 32-bit Professional Edition 4.2
- Microsoft Visual C++, 32-bit Enterprise Edition 4.2b
- Microsoft Visual C++, 32-bit Professional Edition 4.2b
This article was previously published under Q159956 SYMPTOMS
When you use the Microsoft Foundation Classes (MFC) ODBC to update a record
that has not been modified since the last call to CRecordset::Update(), the
fields within the record show up as dirty.
CAUSE
Neither the CRecordset::Edit() function nor the CRecordset::Update()
function clear the dirty flag.
RESOLUTION
Override CRecordset::Update() and clear the dirty flags for your recordset
after calling the base class CRecordset::Update().
STATUS
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article. This bug has been fixed in Visual C++
version 5.0.
Modification Type: | Major | Last Reviewed: | 12/1/2003 |
---|
Keywords: | kbbug kbDatabase kbfix kbVC500fix KB159956 |
---|
|