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-3.0.2 platform/shared/db/DBResult.cpp
rhodes-3.0.2.beta.1 platform/shared/db/DBResult.cpp
rhodes-3.0.1 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.8 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.7 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.6 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.5 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.4 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.3 platform/shared/db/DBResult.cpp
rhodes-3.0.1.beta.2 platform/shared/db/DBResult.cpp
rhodes-3.0.0 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.7 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.6 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.5 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.4 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.3 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.2 platform/shared/db/DBResult.cpp
rhodes-3.0.0.beta.1 platform/shared/db/DBResult.cpp
rhodes-2.4.1 platform/shared/db/DBResult.cpp
rhodes-2.4.1.beta.1 platform/shared/db/DBResult.cpp