fix view generation
Justin Hunter [Sat, 20 Feb 2010 23:56:56 +0000 (15:56 -0800)]
lib/SQL/Translator/Parser/DDL/PostgreSQL.pm

index 95f6cc7..f4a29c1 100644 (file)
@@ -105,6 +105,7 @@ role SQL::Translator::Parser::DDL::PostgreSQL {
           $sql =~ s/\A\s+|\s+\z//g;
           my $view = View->new({
             name    => $vinfo->{view_name},
+            fields  => $vinfo->{fields},
             sql     => $sql,
           });