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(); } }
void CStatement::FreeResources() { delete m_cmd; m_cmd = 0; m_rowCount = -1; if ( m_conn != 0 && m_conn->IsAux() ) { delete m_conn; m_conn = 0; Notify(CDbapiAuxDeletedEvent(this)); } delete m_wr; m_wr = 0; delete m_ostr; m_ostr = 0; ClearParamList(); }
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(); } }