mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 18:36:12 +02:00
Add support for MS SQL XML data type.
Given a test case and some reading of the FreeTDS source code, it appears that the XML data type is sent on the wire as (unicode) text. This patch makes pgloader aware of that and also revisit the choice of casting XML to PostgreSQL XML data type (thanks to the test case where we see it just works without surprise). Fix #503.
This commit is contained in:
parent
296e571e27
commit
b2f9590f58
@ -81,7 +81,7 @@
|
||||
(let ((syb-type (foreign-enum-keyword '%syb-value-type type)))
|
||||
(case syb-type
|
||||
;; we accept emtpy string (len is 0)
|
||||
((:syb-char :syb-varchar :syb-text)
|
||||
((:syb-char :syb-varchar :syb-text :syb-msxml)
|
||||
(foreign-string-to-lisp data :count len))
|
||||
|
||||
(otherwise
|
||||
|
||||
@ -10,7 +10,7 @@
|
||||
(:source (:type "varchar") :target (:type "text" :drop-typemod t))
|
||||
(:source (:type "nvarchar") :target (:type "text" :drop-typemod t))
|
||||
(:source (:type "ntext") :target (:type "text" :drop-typemod t))
|
||||
(:source (:type "xml") :target (:type "text" :drop-typemod t))
|
||||
(:source (:type "xml") :target (:type "xml" :drop-typemod t))
|
||||
|
||||
(:source (:type "int" :auto-increment t)
|
||||
:target (:type "bigserial" :drop-default t))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user