mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
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:
parent
8a596ca933
commit
d60b64c03b
@ -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))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user