From: Wallace Reis Date: Tue, 26 Aug 2008 23:28:56 +0000 (+0000) Subject: missed sql key X-Git-Tag: v0.08240~88^2~4^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=f534e33ba47b3f62736a494a35dbe86ecb264b8b;p=dbsrgits%2FDBIx-Class.git missed sql key --- diff --git a/lib/SQL/Translator/Parser/DBIx/Class.pm b/lib/SQL/Translator/Parser/DBIx/Class.pm index 3e915bc..63cbf92 100644 --- a/lib/SQL/Translator/Parser/DBIx/Class.pm +++ b/lib/SQL/Translator/Parser/DBIx/Class.pm @@ -241,7 +241,7 @@ sub parse { my $view = $schema->add_view( name => $source->name, fields => [ $source->columns ], - ($source->view_definition ? $source->view_definition : ()) + $source->view_definition ? ( 'sql' => $source->view_definition ) : () ); if ($source->result_class->can('sqlt_deploy_hook')) { $source->result_class->sqlt_deploy_hook($view);