Beispiel #1
0
void CCallableStatement::Execute()
{
    SetFailed(false);

    // Reset status value ...
    m_status = 0;
    m_StatusIsAvailable = false;

    _TRACE("Executing stored procedure: " + GetRpcCmd()->GetProcName());
    GetRpcCmd()->Send();

    if ( IsAutoClearInParams() ) {
        // Implicitely clear all parameters.
        ClearParamList();
    }
}
Beispiel #2
0
void CStatement::x_Send(const string& sql)
{
    if( m_cmd != 0 ) {
        delete m_cmd;
        m_cmd = 0;
        m_rowCount = -1;
    }

    SetFailed(false);

    m_cmd = m_conn->GetCDB_Connection()->LangCmd(sql);

    ExecuteLast();

    if ( IsAutoClearInParams() ) {
        // Implicitely clear all parameters.
        ClearParamList();
    }
}