extra must be set in the form of a hashref
Justin Hunter [Thu, 3 Sep 2009 20:01:19 +0000 (13:01 -0700)]
lib/SQL/Translator/Parser/DDL/PostgreSQL.pm

index 1942ac7..005e501 100644 (file)
@@ -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'} };