projects
/
dbsrgits/SQL-Translator.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
3ab19c1
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Schema/Field.pm
b/lib/SQL/Translator/Schema/Field.pm
index
47f1b5d
..
a882632
100644
(file)
--- a/
lib/SQL/Translator/Schema/Field.pm
+++ b/
lib/SQL/Translator/Schema/Field.pm
@@
-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,