From: Justin Hunter Date: Wed, 5 Aug 2009 22:53:08 +0000 (-0700) Subject: minor change X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c13c5c06fc7d8f287f3c527e9d49595c1b0a61c9;p=dbsrgits%2FSQL-Translator-2.0-ish.git minor change --- diff --git a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm index b768060..fd6c88c 100644 --- a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm @@ -20,10 +20,8 @@ role SQL::Translator::Parser::DBI::PostgreSQL { method _column_default_value(HashRef $column_info) { my $default_value = $column_info->{COLUMN_DEF}; - - if (defined $default_value) { - $default_value =~ s/::.*$// - } + $default_value =~ s/::.*$// if defined $default_value + return $default_value; } }