Skip to content

Commit

Permalink
Fix case where parethesis are not added to index creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
darold committed Dec 8, 2021
1 parent caf9790 commit 7d923e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Ora2Pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -9322,7 +9322,7 @@ sub _create_indexes
{
for ($i = 0; $i <= $#{$indexes{$idx}}; $i++)
{
if ( ($indexes{$idx}->[$i] =~ /\s/) && ($indexes{$idx}->[$i] !~ /^[^\.\s]+\s+DESC$/i) ) {
if ( ($indexes{$idx}->[$i] =~ /[\s\-\+\/\*]/) && ($indexes{$idx}->[$i] !~ /^[^\.\s]+\s+DESC$/i) ) {
$indexes{$idx}->[$i] = '(' . $indexes{$idx}->[$i] . ')';
}
}
Expand Down

0 comments on commit 7d923e4

Please sign in to comment.