From 181f344159dc8d7cb25505cde71c877c9d09f8d6 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Thu, 14 Sep 2017 15:33:18 +0200 Subject: [PATCH] Add support for current_timestamp() default spelling. That's new in MariaDB 10 apparently. --- src/sources/mysql/mysql-cast-rules.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sources/mysql/mysql-cast-rules.lisp b/src/sources/mysql/mysql-cast-rules.lisp index 45a8234..954c4e8 100644 --- a/src/sources/mysql/mysql-cast-rules.lisp +++ b/src/sources/mysql/mysql-cast-rules.lisp @@ -177,7 +177,8 @@ ((and (stringp default) ;; address CURRENT_TIMESTAMP(6) and other spellings (or (uiop:string-prefix-p "CURRENT_TIMESTAMP" default) - (string= "CURRENT TIMESTAMP" default))) + (string= "CURRENT TIMESTAMP" default) + (string= "current_timestamp()" default))) :current-timestamp) (t (column-default pgcol))))