From 4a994ac4d42c19ca0289a95d57995f0ed322cd7b Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 1 Jan 2026 08:46:38 +0530 Subject: [PATCH] Ensure correct types in set_pages --- src/calibre/db/cache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/db/cache.py b/src/calibre/db/cache.py index 2d8877ee33..dc99e85524 100644 --- a/src/calibre/db/cache.py +++ b/src/calibre/db/cache.py @@ -1800,7 +1800,7 @@ class Cache: pages = excluded.pages, algorithm = excluded.algorithm, format = excluded.format, format_size = excluded.format_size, timestamp = excluded.timestamp, needs_scan = excluded.needs_scan; - ''', (book_id, pages, algorithm, format, format_size, now)) + ''', (book_id, int(pages), int(algorithm), format, int(format_size), now)) self.fields['pages'].table.book_col_map[book_id] = pages self._clear_composite_caches((book_id,)) # }}}