mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-08 07:16:58 +02:00
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:
parent
ecd6a8e25c
commit
049a1199c2
@ -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.
Loading…
Reference in New Issue
Block a user