Skip to content

Commit

Permalink
Pass $options through directly instead of $generator
Browse files Browse the repository at this point in the history
  • Loading branch information
ilmari committed Sep 9, 2015
1 parent 3963e31 commit b441453
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/SQL/Translator/Producer/PostgreSQL.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit b441453

Please sign in to comment.