mirror of
https://github.com/YACReader/yacreader
synced 2025-11-14 14:02:45 -05:00
Remove clear from sql query
It was committed by mistake
This commit is contained in:
@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user