mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-10 08:17:00 +02:00
Add a casting rule for the I data type in DBF files.
The I data type is mapped to a PostgreSQL integer. See #929.
This commit is contained in:
parent
7d2e5ae941
commit
2b6fb3e6c2
@ -65,7 +65,8 @@ When migrating from DB3 the following Casting Rules are provided::
|
|||||||
|
|
||||||
type C to text using db3-trim-string
|
type C to text using db3-trim-string
|
||||||
type M to text using db3-trim-string
|
type M to text using db3-trim-string
|
||||||
type N to numeric using db3-numeric-to-pgsql-numeric
|
type N to numeric using db3-numeric-to-pgsql-integer
|
||||||
|
type I to numeric using db3-numeric-to-pgsql-numeric
|
||||||
type L to boolean using logical-to-boolean
|
type L to boolean using logical-to-boolean
|
||||||
type D to date using db3-date-to-pgsql-date
|
type D to date using db3-date-to-pgsql-date
|
||||||
|
|
||||||
|
@ -16,6 +16,10 @@
|
|||||||
:target (:type "numeric")
|
:target (:type "numeric")
|
||||||
:using pgloader.transforms::db3-numeric-to-pgsql-numeric)
|
:using pgloader.transforms::db3-numeric-to-pgsql-numeric)
|
||||||
|
|
||||||
|
(:source (:type "I")
|
||||||
|
:target (:type "integer")
|
||||||
|
:using pgloader.transforms::db3-numeric-to-pgsql-integer)
|
||||||
|
|
||||||
(:source (:type "L")
|
(:source (:type "L")
|
||||||
:target (:type "boolean")
|
:target (:type "boolean")
|
||||||
:using pgloader.transforms::logical-to-boolean)
|
:using pgloader.transforms::logical-to-boolean)
|
||||||
|
Loading…
Reference in New Issue
Block a user