CRecordset skipping INSERT of one field

CRecordset skipping INSERT of one field

Post by Gary Newm » Sun, 30 Mar 1997 04:00:00

[ Article crossposted from microsoft.public.vb.database.odbc ]
[ Author was  ]
[ Posted on 28 Mar 1997 03:01:23 GMT ]

: I've got a CRecordset derived class that does just fine
: at inserting all the fields of the set except one.

It appears to be a bug in the Microsoft CRecordset class.
If I put the assignment of any of the database field members
in a separate simple assignment statement it works just fine.
However if I put the assignment in a more complex statement
it fails.

This works:
        m_myDBFieldMember = AnyThingHere;
This fails:
        for(i=0, m_myDBFieldMember=0; i < N; i++)
                m_myDBFieldMember |= array[i];


115 North Branch Rd.                    voice: (508) 369-4207
Concord, MA 01742                       Fax:   (508) 369-8109