From: Justin Hunter Date: Fri, 7 Aug 2009 05:42:59 +0000 (-0700) Subject: forgot a pesky semicolon X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1f5bc4d145a63e0f526f4aefcc122ac97cb28177;p=dbsrgits%2FSQL-Translator-2.0-ish.git forgot a pesky semicolon --- diff --git a/lib/SQL/Translator/Parser/DBI/MySQL.pm b/lib/SQL/Translator/Parser/DBI/MySQL.pm index cc9c6f5..217c0d6 100644 --- a/lib/SQL/Translator/Parser/DBI/MySQL.pm +++ b/lib/SQL/Translator/Parser/DBI/MySQL.pm @@ -15,7 +15,7 @@ role SQL::Translator::Parser::DBI::MySQL { method _column_default_value(HashRef $column_info) { my $default_value = $column_info->{COLUMN_DEF}; - $default_value =~ s/::.*$// if defined $default_value + $default_value =~ s/::.*$// if defined $default_value; return $default_value; } diff --git a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm index fd6c88c..0d79c87 100644 --- a/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm @@ -20,7 +20,7 @@ role SQL::Translator::Parser::DBI::PostgreSQL { method _column_default_value(HashRef $column_info) { my $default_value = $column_info->{COLUMN_DEF}; - $default_value =~ s/::.*$// if defined $default_value + $default_value =~ s/::.*$// if defined $default_value; return $default_value; }