From: Dagfinn Ilmari Mannsåker Date: Wed, 9 Sep 2015 15:09:26 +0000 (+0100) Subject: Pass $options through directly instead of $generator X-Git-Tag: v0.11022~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FSQL-Translator.git;a=commitdiff_plain;h=b4414534f4fb5bfa82073f0768d36914340175e9 Pass $options through directly instead of $generator --- diff --git a/lib/SQL/Translator/Producer/PostgreSQL.pm b/lib/SQL/Translator/Producer/PostgreSQL.pm index 66461f0..7685587 100644 --- a/lib/SQL/Translator/Producer/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/PostgreSQL.pm @@ -451,9 +451,7 @@ sub create_view { # if (is_geometry($field)) { foreach ( create_geometry_constraints($field, $options) ) { - my ($cdefs, $fks) = create_constraint($_, { - generator => $generator, - }); + my ($cdefs, $fks) = create_constraint($_, $options); push @$constraint_defs, @$cdefs; push @$fks, @$fks; } @@ -924,9 +922,7 @@ sub rename_table { sub alter_create_index { my ($index, $options) = @_; my $generator = _generator($options); - my ($idef, $constraints) = create_index($index, { - generator => $generator, - }); + my ($idef, $constraints) = create_index($index, $options); return $index->type eq NORMAL ? $idef : sprintf('ALTER TABLE %s ADD %s', $generator->quote($index->table->name),