CompuServe Thread

#transactions

3 messages in this thread
#30401From: Ronald LaeremansJul 10, 1994 3:37 AM
Israel, You probably didn't find the functions because you were looking in the wrong place. the functions "BeginTrans", "CommitTrans" and "Rollback" are members of CDatabase. This makes sense because transactions work across recordsets, i.e. if you commit a transaction, work performed in all recordsets will be committed. -Ronald-
#30509From: Israel BurmanJul 11, 1994 10:15 AM
Ronald Thanks for your help. I really was looking on the wrong place. I think I was induced to it because I found in the recordset the CanTransact function. May be this function should also be only in CDataBase, or is there something special in this case that makes this function to be part of RecordSet? Thanks Israel
#30551From: Ronald LaeremansJul 11, 1994 4:00 PM
Israel, When I double checked the info before posting it to you, I also came across CanTransact in CRecordset and I wondered about what made that one special as well. So… I looked at the source and found that CRecordset::CanTransact is essentially implemented as return m_pDatabasem_bTransactions So I really wonder why this function was included. -Ronald-