Add more data_types for sql_types mapping
Wallace Reis [Tue, 29 Jul 2014 21:39:26 +0000 (18:39 -0300)]
lib/SQL/Translator/Schema/Field.pm

index 47f1b5d..a882632 100644 (file)
@@ -54,10 +54,14 @@ our %type_mapping = (
   bigint => SQL_BIGINT,
 
   double => SQL_DOUBLE,
+  'double precision' => SQL_DOUBLE,
 
   decimal => SQL_DECIMAL,
-  numeric => SQL_NUMERIC,
   dec => SQL_DECIMAL,
+  numeric => SQL_NUMERIC,
+
+  real => SQL_REAL,
+  float => SQL_FLOAT,
 
   bit => SQL_BIT,