Implement support for SQLite current_date default value.

The spelling in SQLite for the default value is "current_date", instruct
pgloader about that. This commit also adds a test case in our sqlite.db
unit tests database.

Fixes #607.
This commit is contained in:
Dimitri Fontaine 2017-08-08 21:55:15 +02:00
parent ecd6a8e25c
commit 049a1199c2
2 changed files with 2 additions and 0 deletions

View File

@ -100,6 +100,8 @@
(or (uiop:string-prefix-p "CURRENT_TIMESTAMP" default)
(string= "CURRENT TIMESTAMP" default)))
:current-timestamp)
((and (stringp default) (string-equal "current_date" default))
:current-date)
(t (column-default pgcol))))
pgcol)))

Binary file not shown.