Fix type declaration to include null values, fix #238.

In passing, add a test case for NIL datetime values in our SQLite sample
database.
This commit is contained in:
Dimitri Fontaine 2015-05-22 23:49:03 +02:00
parent d1fce3728a
commit c3b5d60542
2 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@
(integer string-or-integer)))
(defun sqlite-timestamp-to-timestamp (date-string-or-integer)
(declare (type (or integer simple-string) date-string-or-integer))
(declare (type (or null integer simple-string) date-string-or-integer))
(when date-string-or-integer
(cond ((and (typep date-string-or-integer 'integer)
(= 0 date-string-or-integer))

Binary file not shown.