From: Justin Hunter Date: Thu, 3 Dec 2009 15:36:50 +0000 (-0800) Subject: fix for Pg DDL parser X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=576929491ce25aff69b24a06886f190348455cb6;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix for Pg DDL parser --- diff --git a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm index f0f7afa..0c3dbe7 100644 --- a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm @@ -38,7 +38,7 @@ role SQL::Translator::Parser::DDL::PostgreSQL { $schema->add_table($table); $table->extra({ temporary => 1 }) if $tdata->{'temporary'}; - $table->comments( $tdata->{'comments'}->flatten ) if $tdata->{comments}; + $table->comments( [ $tdata->{'comments'}->flatten ]) if $tdata->{comments}; my @fields = sort { $tdata->{'fields'}{ $a }{'order'} <=> $tdata->{'fields'}{ $b }{'order'} } keys %{ $tdata->{'fields'} };