CSRTables::~CSRTables() { if(m_spUnkSite) { CCUBRIDSession* pSession = CCUBRIDSession::GetSessionPtr(this); if (pSession->m_cSessionsOpen == 1) pSession->RowsetCommit(); } }
CSRViewColumnUsage::~CSRViewColumnUsage() { if(m_spUnkSite) { CCUBRIDSession* pSession = CCUBRIDSession::GetSessionPtr(this); if (pSession->m_cSessionsOpen == 1) pSession->RowsetCommit(); } }
static HRESULT DoCommit(CCUBRIDRowset *pRowset) { // CHECK_UPDATABILITY에서 걸러질 것이다. ATLASSERT(pRowset->m_eType==CCUBRIDRowset::FromCommand || pRowset->m_eType==CCUBRIDRowset::FromSession); Util::ITxnCallback *pOwner = 0; if(pRowset->m_eType==CCUBRIDRowset::FromCommand) pOwner = pRowset->GetCommandPtr(); else if(pRowset->m_eType==CCUBRIDRowset::FromSession) pOwner = pRowset; CCUBRIDSession *pSession = pRowset->GetSessionPtr(); ATLASSERT(pSession); return pSession->AutoCommit(pOwner); }