mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-02 01:21:01 +02:00
Add support for IXF CLOB data type.
In passing, fix the condition message to read the unknown IXF data types as decimal numbers (rather than hexadecimal) as they are documented that way in the IBM reference documentation.
This commit is contained in:
parent
598c860cf5
commit
bd44e6423b
@ -37,14 +37,16 @@
|
||||
(#. ixf:+time+ . "time")
|
||||
|
||||
(#. ixf:+char+ . "text")
|
||||
(#. ixf:+varchar+ . "text")))
|
||||
(#. ixf:+varchar+ . "text")
|
||||
|
||||
(#. ixf:+dbclob-location-spec+ . "text")))
|
||||
|
||||
(defun cast-ixf-type (ixf-type)
|
||||
"Return the PostgreSQL type name for a given IXF type name."
|
||||
(let ((pgtype
|
||||
(cdr (assoc ixf-type *ixf-pgsql-type-mapping*))))
|
||||
(unless pgtype
|
||||
(error "IXF Type mapping unknown for: ~x" ixf-type))
|
||||
(error "IXF Type mapping unknown for: ~d" ixf-type))
|
||||
pgtype))
|
||||
|
||||
(defun format-default-value (default)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user