delete from 수정

git-svn-id: svn://192.168.0.12/source@85 8346c931-da38-4b9b-9d4c-e48b93cbd075
This commit is contained in:
admin
2015-04-29 05:25:27 +00:00
parent 7417d239b5
commit e6d9ccdbc0

View File

@@ -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();