mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Remove clear from sql query
It was committed by mistake
This commit is contained in:
parent
e4dec39eaa
commit
a6bfd44aec
@ -842,8 +842,6 @@ void DBHelper::updateFromRemoteClient(const QMap<qulonglong, QList<ComicInfo>> &
|
|||||||
updateComicInfo.bindValue(":id", comic.info.id);
|
updateComicInfo.bindValue(":id", comic.info.id);
|
||||||
updateComicInfo.bindValue(":rating", comic.info.rating);
|
updateComicInfo.bindValue(":rating", comic.info.rating);
|
||||||
updateComicInfo.exec();
|
updateComicInfo.exec();
|
||||||
|
|
||||||
updateComicInfo.clear();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -906,9 +904,10 @@ void DBHelper::updateFromRemoteClientWithHash(const QList<ComicInfo> &comics)
|
|||||||
updateComicInfo.bindValue(":id", info.id);
|
updateComicInfo.bindValue(":id", info.id);
|
||||||
updateComicInfo.bindValue(":rating", info.rating);
|
updateComicInfo.bindValue(":rating", info.rating);
|
||||||
updateComicInfo.exec();
|
updateComicInfo.exec();
|
||||||
;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
db.commit();
|
||||||
|
|
||||||
db.close();
|
db.close();
|
||||||
QSqlDatabase::removeDatabase(db.connectionName());
|
QSqlDatabase::removeDatabase(db.connectionName());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user