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

Version Path
rhodes-2.2.3.beta.1 platform/shared/db/DBResult.cpp
rhodes-2.2.2 platform/shared/db/DBResult.cpp
rhodes-2.2.2.beta.1 platform/shared/db/DBResult.cpp
rhodes-2.2.1 platform/shared/db/DBResult.cpp
rhodes-2.2.1.beta.2 platform/shared/db/DBResult.cpp
rhodes-2.2.1.beta.1 platform/shared/db/DBResult.cpp
rhodes-2.2.0 platform/shared/db/DBResult.cpp
rhodes-2.2.0.beta.3 platform/shared/db/DBResult.cpp
rhodes-2.2.0.beta.2 platform/shared/db/DBResult.cpp
rhodes-2.2.0.beta.1 platform/shared/db/DBResult.cpp
rhodes-2.1.0 platform/shared/db/DBResult.cpp