fix for Pg DDL parser
Justin Hunter [Thu, 3 Dec 2009 15:36:50 +0000 (07:36 -0800)]
lib/SQL/Translator/Parser/DDL/PostgreSQL.pm

index f0f7afa..0c3dbe7 100644 (file)
@@ -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'} };