From: Ken Youens-Clark Date: Mon, 23 Jun 2003 21:47:30 +0000 (+0000) Subject: Allow data types which haven't been listed in translation table to pass X-Git-Tag: v0.04~397 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=61aa0c9d469bbcd28ab6f2e32b89f54ecd8210f7;p=dbsrgits%2FSQL-Translator.git Allow data types which haven't been listed in translation table to pass through unchanged. --- diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index 53abacd..70ba6b0 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -1,7 +1,7 @@ package SQL::Translator::Producer::PostgreSQL; # ------------------------------------------------------------------- -# $Id: PostgreSQL.pm,v 1.10 2003-06-11 04:00:43 kycl4rk Exp $ +# $Id: PostgreSQL.pm,v 1.11 2003-06-23 21:47:30 kycl4rk Exp $ # ------------------------------------------------------------------- # Copyright (C) 2003 Ken Y. Clark , # darren chamberlain , @@ -30,7 +30,7 @@ SQL::Translator::Producer::PostgreSQL - PostgreSQL producer for SQL::Translator use strict; use vars qw[ $DEBUG $WARN $VERSION ]; -$VERSION = sprintf "%d.%02d", q$Revision: 1.10 $ =~ /(\d+)\.(\d+)/; +$VERSION = sprintf "%d.%02d", q$Revision: 1.11 $ =~ /(\d+)\.(\d+)/; $DEBUG = 1 unless defined $DEBUG; use SQL::Translator::Schema::Constants; @@ -223,7 +223,7 @@ sub produce { else { $data_type = defined $translate{ $data_type } ? $translate{ $data_type } : - die "Unknown datatype: $data_type\n"; + $data_type; } $field_def .= " $data_type";