From c94164c05c59e1ee7eb97f6c8baa7bc074cf4aad Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Sun, 16 Nov 2014 21:54:13 +0100 Subject: [PATCH] Fix MS SQL convertion of money to numeric. --- src/sources/mssql/mssql-cast-rules.lisp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/sources/mssql/mssql-cast-rules.lisp b/src/sources/mssql/mssql-cast-rules.lisp index 3e1ee0f..7beb000 100644 --- a/src/sources/mssql/mssql-cast-rules.lisp +++ b/src/sources/mssql/mssql-cast-rules.lisp @@ -22,9 +22,6 @@ (:source (:type "geography") :target (:type "bytea") :using pgloader.transforms::byte-vector-to-bytea) - (:source (:type "money") :target (:type "numeric")) - (:source (:type "smallmoney") :target (:type "numeric")) - (:source (:type "tinyint") :target (:type "smallint")) (:source (:type "float") :target (:type "float") @@ -39,6 +36,12 @@ (:source (:type "numeric") :target (:type "numeric") :using pgloader.transforms::float-to-string) + (:source (:type "money") :target (:type "numeric") + :using pgloader.transforms::float-to-string) + + (:source (:type "smallmoney") :target (:type "numeric") + :using pgloader.transforms::float-to-string) + (:source (:type "binary") :target (:type "bytea") :using pgloader.transforms::byte-vector-to-bytea)