From: Justin Hunter Date: Sat, 20 Feb 2010 23:56:56 +0000 (-0800) Subject: fix view generation X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=866101a4430f65f4e0f12473fd7c07fb6115050a;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix view generation --- diff --git a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm index 95f6cc7..f4a29c1 100644 --- a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm @@ -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, });