Add support for DATETIME() function call as a SQLite default values.

Fixes #1177.
This commit is contained in:
Dimitri Fontaine 2020-07-03 18:39:37 +02:00
parent 689dd4a806
commit f5139cbf29
2 changed files with 6 additions and 0 deletions

View File

@ -107,6 +107,12 @@
(string= "CURRENT TIMESTAMP" default)))
:current-timestamp)
((and (stringp default)
;; we don't care about spaces in that expression
(string-equal "datetime('now','localtime')"
(remove #\Space default)))
:current-timestamp)
((and (stringp default) (string-equal "current_date" default))
:current-date)

Binary file not shown.