mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 15:56:58 +02:00
Keep typemod, default and not null when lacking casting rules, fixes #91.
This commit is contained in:
parent
d1100efa28
commit
a70a0ddd77
@ -283,7 +283,11 @@
|
||||
;;
|
||||
;; prefer char(24) over just char, that is the column type over the
|
||||
;; data type.
|
||||
source-ctype)))
|
||||
(format nil "~a~:[~; not null~]~:[~; default ~a~]"
|
||||
source-ctype
|
||||
source-not-null
|
||||
source-default
|
||||
(format-pgsql-default-value source-default using)))))
|
||||
|
||||
(defun apply-casting-rules (dtype ctype default nullable extra
|
||||
&key
|
||||
|
Loading…
Reference in New Issue
Block a user