Remove clear from sql query

It was committed by mistake
This commit is contained in:
Luis Ángel San Martín 2019-09-16 23:44:30 +02:00
parent e4dec39eaa
commit a6bfd44aec

View File

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