From 45924be87d15991b49ea08535c37a0d379dd5908 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sun, 27 Mar 2016 01:09:22 +0100 Subject: [PATCH] Add support for MS SQL newid() function. The newid() function seems to be equivalent to the newsequentialid() one if I'm to believe issue #204, so let's just add that assumption in the code. Fix #204. --- src/utils/pg-format-column.lisp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/pg-format-column.lisp b/src/utils/pg-format-column.lisp index 9ec100b..bc4b730 100644 --- a/src/utils/pg-format-column.lisp +++ b/src/utils/pg-format-column.lisp @@ -14,7 +14,8 @@ (or (uiop:string-prefix-p "CURRENT_TIMESTAMP" default) (string= "CURRENT TIMESTAMP" default))) "CURRENT_TIMESTAMP") - ((and (stringp default) (string= "newsequentialid()" default)) + ((and (stringp default) (or (string= "newid()" default) + (string= "newsequentialid()" default))) "uuid_generate_v1()") (t ;; apply the transformation function to the default value