Skip to content

Commit

Permalink
Remove possible comma from index renaming.
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Nov 26, 2021
1 parent 738ddb2 commit b7bf50e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/Ora2Pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9369,6 +9369,7 @@ sub _create_indexes
$idxname = substr($idxname,0,63);
}
}
$idxname =~ s/,//g;
$idxname = $self->quote_object_name("$idxname$self->{indexes_suffix}");
my $tb = $self->quote_object_name($table);
if ($self->{$objtyp}{$tbsaved}{idx_type}{$idx}{type_name} =~ /SPATIAL_INDEX/)
Expand Down Expand Up @@ -9663,6 +9664,7 @@ sub _drop_indexes
$idxname = substr($idxname,0,63);
}
}
$idxname =~ s/,//g;
if ($self->{tables}{$table}{idx_type}{$idx}{type} =~ /DOMAIN/i && $self->{tables}{$table}{idx_type}{$idx}{type_name} !~ /SPATIAL_INDEX/)
{
$idxname = $self->quote_object_name($idxname);
Expand Down

0 comments on commit b7bf50e

Please sign in to comment.