From: Dagfinn Ilmari Mannsåker Date: Wed, 10 Dec 2014 17:28:59 +0000 (+0000) Subject: Fix clob type translation in Producer::PostgreSQL X-Git-Tag: v0.11021~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ada2826e3198e66fea852e5a6cbf9e7fee57bf22;p=dbsrgits%2FSQL-Translator.git Fix clob type translation in Producer::PostgreSQL - Match types to translate case-insensitively - Convert clob to text, not bytea --- diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index 8f8478e..2cd35dd 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -79,7 +79,7 @@ BEGIN { number => 'integer', varchar2 => 'character varying', long => 'text', - CLOB => 'bytea', + clob => 'text', # # Sybase types @@ -672,8 +672,8 @@ sub convert_datatype undef @size; } else { - $data_type = defined $translate{ $data_type } ? - $translate{ $data_type } : + $data_type = defined $translate{ lc $data_type } ? + $translate{ lc $data_type } : $data_type; }