From: Justin Hunter Date: Thu, 3 Sep 2009 20:01:41 +0000 (-0700) Subject: comments cannot be set in the constructor, must use external method X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a3e6977385a67ecd12a921f15f345777344c96f3;p=dbsrgits%2FSQL-Translator-2.0-ish.git comments cannot be set in the constructor, must use external method --- diff --git a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm index 005e501..c1708bf 100644 --- a/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm +++ b/lib/SQL/Translator/Parser/DDL/PostgreSQL.pm @@ -50,11 +50,11 @@ role SQL::Translator::Parser::DDL::PostgreSQL { sql_data_type => $self->data_type_mapping->{$fdata->{data_type}} || -999999, size => $fdata->{'size'}, default_value => $fdata->{'default'}, - is_auto_increment => $fdata->{'is_auto_increment'}, + is_auto_increment => $fdata->{'is_auto_increment'}, is_nullable => $fdata->{'is_nullable'}, - comments => $fdata->{'comments'}, table => $table, }); + $field->comments($fdata->{comments}); $table->add_column($field); $table->primary_key($field->name) if $fdata->{is_primary_key};