Skip to content

Commit

Permalink
Fix ALLOW/EXCLUDE ignored with type COPY or INSERT. Thanks to
Browse files Browse the repository at this point in the history
thleblond for the patch.
  • Loading branch information
dalibot committed Jan 15, 2015
1 parent 907aae9 commit d215b1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Ora2Pg.pm
Original file line number Diff line number Diff line change
Expand Up @@ -726,13 +726,13 @@ sub _init
# Global regex will be applied to the export type only
foreach my $i (@{$self->{limited}{ALL}}) {
my $typ = $self->{type} || 'TABLE';
$typ = 'TABLE' if ($self->{type} =~ /(SHOW_TABLE|SHOW_COLUMN|FDW|KETTLE)/);
$typ = 'TABLE' if ($self->{type} =~ /(SHOW_TABLE|SHOW_COLUMN|FDW|KETTLE|COPY|INSERT)/);
push(@{$self->{limited}{$typ}}, $i);
}
delete $self->{limited}{ALL};
foreach my $i (@{$self->{excluded}{ALL}}) {
my $typ = $self->{type} || 'TABLE';
$typ = 'TABLE' if ($self->{type} =~ /(SHOW_TABLE|SHOW_COLUMN|FDW|KETTLE)/);
$typ = 'TABLE' if ($self->{type} =~ /(SHOW_TABLE|SHOW_COLUMN|FDW|KETTLE|COPY|INSERT)/);
push(@{$self->{excluded}{$typ}}, $i);
}
delete $self->{excluded}{ALL};
Expand Down

0 comments on commit d215b1d

Please sign in to comment.