mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
Fix SQL update query for setting manga
in all the comics in a folder
This commit is contained in:
parent
710e9d9026
commit
3f6c44ce7a
@ -1531,8 +1531,7 @@ void DBHelper::updateFolderTreeManga(qulonglong id, QSqlDatabase &db, bool manga
|
||||
QSqlQuery updateComicInfo(db);
|
||||
updateComicInfo.prepare("UPDATE comic_info "
|
||||
"SET manga = :manga "
|
||||
"FROM comic c INNER JOIN comic_info ci ON (c.comicInfoId = ci.id) "
|
||||
"WHERE c.parentId = :parentId");
|
||||
"WHERE id IN (SELECT ci.id FROM comic c INNER JOIN comic_info ci ON (c.comicInfoId = ci.id) WHERE c.parentId = :parentId)");
|
||||
updateComicInfo.bindValue(":manga", manga ? 1 : 0);
|
||||
updateComicInfo.bindValue(":parentId", id);
|
||||
updateComicInfo.exec();
|
||||
|
Loading…
x
Reference in New Issue
Block a user