Guard against non-blob values of bookmark.date
This commit is contained in:
parent
77c7dbaa9a
commit
1b6badfcce
1 changed files with 3 additions and 1 deletions
|
@ -5,7 +5,9 @@
|
|||
(require-library srfi-4)
|
||||
|
||||
(define (blob->seconds blob)
|
||||
(u32vector-ref (blob->u32vector blob) 0))
|
||||
(if (u32vector? blob)
|
||||
(u32vector-ref (blob->u32vector blob) 0)
|
||||
0))
|
||||
|
||||
(define (convert-table db name converter #!optional select)
|
||||
(let ((count (first-result db (string-append "SELECT COUNT(*) FROM " name)))
|
||||
|
|
Loading…
Reference in a new issue