delete from 수정
git-svn-id: svn://192.168.0.12/source@85 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
@@ -726,8 +726,8 @@ void SCrawler::saveFrameCafeList(QWebFrame *frame)
|
||||
|
||||
QString strQuery = "delete from ";
|
||||
strQuery += m_strTable;
|
||||
strQuery += QString(" where article_url = 'http://%1'").arg(strUrl);
|
||||
|
||||
strQuery += QString(" where article_url = '%1'").arg(strUrl);
|
||||
//qDebug() << strUrl;
|
||||
if (sql.exec(strQuery) == false)
|
||||
{
|
||||
cout << "error " << sql.lastError().text().toStdString();
|
||||
@@ -953,7 +953,8 @@ void SCrawler::saveFrameDaumCafeList(QWebFrame *frame)
|
||||
|
||||
QString strQuery = "delete from ";
|
||||
strQuery += m_strTable;
|
||||
strQuery += QString(" where article_url = 'http://%1'").arg(strUrl);
|
||||
strQuery += QString(" where article_url = '%1'").arg(strUrl);
|
||||
qDebug() << strUrl;
|
||||
if (sql.exec(strQuery) == false)
|
||||
{
|
||||
cout << "error " << sql.lastError().text().toStdString();
|
||||
|
||||
Reference in New Issue
Block a user