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.
This commit is contained in:
Dimitri Fontaine 2016-03-27 01:09:22 +01:00
parent d72c711b45
commit 45924be87d

View File

@ -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