branch: externals/calibre
commit b2c34a58d450edc0f870f635aad5b14b4f1f383f
Author: Kjartan Óli Ágústsson <[email protected]>
Commit: Kjartan Óli Ágústsson <[email protected]>
Use the right column name in query
* calibre-db.el (calibre-db--get-series-books): Access the series
column, not the non-existent publisher column of book_series_link.
---
calibre-db.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/calibre-db.el b/calibre-db.el
index 976714f4b6..bef7697574 100644
--- a/calibre-db.el
+++ b/calibre-db.el
@@ -161,7 +161,7 @@ WHERE p.name = ?" `[,publisher])))
(flatten-list (sqlite-select (calibre--db)
"SELECT book
FROM books_series_link sl
-LEFT JOIN series s ON sl.publisher = s.id
+LEFT JOIN series s ON sl.series = s.id
WHERE s.name = ?" `[,series])))
(defun calibre-db--get-format-books (format)