diff --git a/docs/ref/sqlite.rst b/docs/ref/sqlite.rst index 2af9fbf..763f4ae 100644 --- a/docs/ref/sqlite.rst +++ b/docs/ref/sqlite.rst @@ -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:: diff --git a/src/sources/sqlite/sqlite-cast-rules.lisp b/src/sources/sqlite/sqlite-cast-rules.lisp index beca485..f884597 100644 --- a/src/sources/sqlite/sqlite-cast-rules.lisp +++ b/src/sources/sqlite/sqlite-cast-rules.lisp @@ -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)