From: Justin Hunter Date: Thu, 3 Sep 2009 20:01:19 +0000 (-0700) Subject: extra must be set in the form of a hashref X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0410f55a559565257c3a5f08e6a7de17b1e09f87;p=dbsrgits%2FSQL-Translator-2.0-ish.git extra must be set in the form of a hashref --- diff --git a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm index 1942ac7..005e501 100644 --- a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm @@ -36,7 +36,7 @@ role SQL::Translator::Parser::DDL::PostgreSQL { my $table = Table->new({ name => $tdata->{table_name}, schema => $schema }); $schema->add_table($table); - $table->extra(temporary => 1) if $tdata->{'temporary'}; + $table->extra({ temporary => 1 }) if $tdata->{'temporary'}; $table->comments( $tdata->{'comments'} ); my @fields = sort { $tdata->{'fields'}{ $a }{'order'} <=> $tdata->{'fields'}{ $b }{'order'} } keys %{ $tdata->{'fields'} };