Skip to content

Commit db137fa

Browse files
committedJan 11, 2012
Use real for decimal
1 parent bbd31d7 commit db137fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎lib/mysql2psql/postgres_writer.rb

+2-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ def column_type_info(column)
5454
"real"
5555
when "decimal"
5656
default = " DEFAULT #{column[:default].nil? ? 'NULL' : column[:default]}" if default
57-
"numeric(#{column[:length] || 10}, #{column[:decimals] || 5})"
57+
#"numeric(#{column[:length] || 10}, #{column[:decimals] || 5})"
58+
"real"
5859

5960
when "double precision"
6061
default = " DEFAULT #{column[:default].nil? ? 'NULL' : column[:default]}" if default

0 commit comments

Comments
 (0)
Please sign in to comment.