| 160 |
while(!RS.IsEEOF()) |
while(!RS.IsEEOF()) |
| 161 |
{ |
{ |
| 162 |
RS.GetFieldValue("group",dbVar,SQL_C_CHAR); |
RS.GetFieldValue("group",dbVar,SQL_C_CHAR); |
| 163 |
group = *(dbVr.m_pstring); |
group = *(dbVar.m_pstring); |
| 164 |
art_begin = 1; |
art_begin = 1; |
| 165 |
art_end = 0;; |
art_end = 0;; |
| 166 |
RS.GetFieldValue("in",dbVar,SQL_C_SSHORT); |
RS.GetFieldValue("in",dbVar,SQL_C_SSHORT); |
| 316 |
if (strcmp(cmd,"cancel")==0 && strcmp(cancel_msg_id,"")!=0) //Empty Message-ID |
if (strcmp(cmd,"cancel")==0 && strcmp(cancel_msg_id,"")!=0) //Empty Message-ID |
| 317 |
{ |
{ |
| 318 |
//Delete article |
//Delete article |
| 319 |
sql.Format("select AID from innd_logfile where msg_id='%s'" |
sql.Format("select AID from innd_log where msg_id='%s'" |
| 320 |
" and op='I' and cancel=0",base::addslashes(cancel_msg_id)); |
" and op='I' and cancel=0",base::addslashes(cancel_msg_id)); |
| 321 |
|
|
| 322 |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
RS.Open(CRecordset::snapshot,sql,CRecordset::forwardOnly | CRecordset::readOnly); |
| 355 |
} |
} |
| 356 |
catch(CException* e) |
catch(CException* e) |
| 357 |
{ |
{ |
| 358 |
syslog << logfile::log_head << "Error in cmd_ihave()" << endl; |
char strErrMsg[256]; |
| 359 |
|
e->GetErrorMessage(strErrMsg,256); |
| 360 |
|
syslog << logfile::log_head << "Error in cmd_ihave() [" << strErrMsg << "]" << endl; |
| 361 |
e->Delete(); |
e->Delete(); |
| 362 |
return -1; |
return -1; |
| 363 |
} |
} |