From d97205ac2e7154f8617fe9f7223440a0633afb9c Mon Sep 17 00:00:00 2001 From: anviloro Date: Tue, 29 Jul 2014 12:32:22 -0600 Subject: [PATCH] Managing double(x,y) scenarios Mysql double(x,y) scenarios was throwing an error, so what I'm doing now is to find the "double(" string and change it to numeric(x,y) --- db_converter.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db_converter.py b/db_converter.py index 439957b..a65d693 100644 --- a/db_converter.py +++ b/db_converter.py @@ -134,6 +134,9 @@ def parse(input_filename, output_filename): set_sequence = True elif type == "datetime": type = "timestamp with time zone" + elif type.startswith("double("): + size = (type.split("(")[1].rstrip(")")) + type = "numeric(%s)" % (size) elif type == "double": type = "double precision" elif type == "blob":