Sha256: b14148dc67ddb03e076881ce2986b9fbd047559af4df95033883368d7d23d052
Contents?: true
Size: 628 Bytes
Versions: 51
Compression:
Stored size: 628 Bytes
Contents
#include "DBResult.h" #include "DBAdapter.h" namespace rho{ namespace db{ CDBResult::CDBResult(sqlite3_stmt* st,CDBAdapter* pDB) : m_pDB(pDB), m_dbStatement(st) { m_bReportNonUnique=false; //m_nErrorCode=0; if ( m_pDB ) m_pDB->Lock(); } CDBResult::CDBResult() : m_pDB(null), m_dbStatement(null) { m_bReportNonUnique=false; //m_nErrorCode=0; } CDBResult::~CDBResult(void) { setStatement(null); if ( m_pDB ) m_pDB->Unlock(); } void CDBResult::setStatement(sqlite3_stmt* st) { if ( m_dbStatement != null ) sqlite3_reset(m_dbStatement); m_dbStatement = st; } } }
Version data entries
51 entries across 51 versions & 1 rubygems