Implement SQLite casting rule for “decimal”.

Fix #739.
This commit is contained in:
Dimitri Fontaine 2018-02-07 20:47:47 +01:00
parent 976e4c1c1d
commit 20d7858e27
2 changed files with 4 additions and 0 deletions

View File

@ -183,6 +183,7 @@ Numbers::
type real to real using float-to-string
type double to double precision using float-to-string
type numeric to numeric using float-to-string
type decimal to numeric using float-to-string
Texts::

View File

@ -35,6 +35,9 @@
(:source (:type "numeric") :target (:type "numeric" :drop-typemod nil)
:using pgloader.transforms::float-to-string)
(:source (:type "decimal") :target (:type "decimal" :drop-typemod nil)
:using pgloader.transforms::float-to-string)
(:source (:type "blob") :target (:type "bytea")
:using pgloader.transforms::byte-vector-to-bytea)