mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
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:
parent
d1fce3728a
commit
c3b5d60542
@ -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.
Loading…
x
Reference in New Issue
Block a user