--- innwebd/innd.cpp 2004/07/04 06:45:23 1.6 +++ innwebd/innd.cpp 2004/07/04 22:15:25 1.9 @@ -156,11 +156,11 @@ int innd::cmd_list(void) sql = "select * from innd_conf order by `group`"; - RS.Open(CRecordset::snapshot,sql,CRecordst::forwardOnly | CRecordset::readOnly); - while(!RS.IsEEOF()) + RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); + while(!RS.IsEOF()) { RS.GetFieldValue("group",dbVar,SQL_C_CHAR); - group = *(dbVr.m_pstring); + group = *(dbVar.m_pstring); art_begin = 1; art_end = 0;; RS.GetFieldValue("in",dbVar,SQL_C_SSHORT); @@ -316,7 +316,7 @@ int innd::cmd_ihave(const char* msg_id) if (strcmp(cmd,"cancel")==0 && strcmp(cancel_msg_id,"")!=0) //Empty Message-ID { //Delete article - sql.Format("select AID from innd_logfile where msg_id='%s'" + sql.Format("select AID from innd_log where msg_id='%s'" " and op='I' and cancel=0",base::addslashes(cancel_msg_id)); RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); @@ -355,7 +355,9 @@ int innd::cmd_ihave(const char* msg_id) } catch(CException* e) { - syslog << logfile::log_head << "Error in cmd_ihave()" << endl; + char strErrMsg[256]; + e->GetErrorMessage(strErrMsg,256); + syslog << logfile::log_head << "Error in cmd_ihave() [" << strErrMsg << "]" << endl; e->Delete(); return -1; }