Avoid crashing if multiple entries exist for same URL/source
Related to #8331. We'll need to revisit some of the get/insert logic to make sure this doesn't actually happen, but at least it'll stop crashing for now. (cherry picked from commit dd6c9ce2feee28b5535e864f27bbc088ac009a99)
This commit is contained in:
parent
53a0097741
commit
222762b778
@ -33,10 +33,12 @@ SELECT *
|
||||
FROM mangas
|
||||
WHERE _id = :id;
|
||||
|
||||
-- TODO: this should ideally never really have more than 1 result
|
||||
getMangaByUrlAndSource:
|
||||
SELECT *
|
||||
FROM mangas
|
||||
WHERE url = :url AND source = :source;
|
||||
WHERE url = :url AND source = :source
|
||||
LIMIT 1;
|
||||
|
||||
getFavorites:
|
||||
SELECT *
|
||||
|
Loading…
x
Reference in New Issue
Block a user