Implement MS SQL newsequentialid() default value.

We convert the default value call to newsequentialid() into a call to
the PostgreSQL uuid-ossp uuid_generate_v1() which seems like the
equivalent function.

The extension "uuid-ossp" needs to be installed in the target database.

(Blind) Fix #246.
This commit is contained in:
Dimitri Fontaine 2016-01-08 22:43:38 +01:00
parent 8a596ca933
commit d60b64c03b

View File

@ -363,6 +363,8 @@
((and (stringp default) (string= "CURRENT_TIMESTAMP" default)) default)
((and (stringp default) (string= "CURRENT TIMESTAMP" default))
"CURRENT_TIMESTAMP")
((and (stringp default) (string= "newsequentialid()" default))
"uuid_generate_v1()")
(t
;; apply the transformation function to the default value
(if transform (format-default-value (funcall transform default))