Skip to content

Commit

Permalink
Fix compile_schema() call that breaks valid function based indexes by…
Browse files Browse the repository at this point in the history
… adding

compile_all => FALSE to DBMS_UTILITY.compile_schema().
Thanks to Pawel Fengler for the patch.
  • Loading branch information
gilles-migops committed Jul 1, 2021
1 parent d5e82f6 commit 927b07d
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 @@ -19525,7 +19525,7 @@ sub _compile_schema
if ($#to_compile >= 0) {
foreach my $schm (@to_compile) {
$self->logit("Force Oracle to compile schema $schm before code extraction\n", 1);
my $sth = $self->{dbh}->do("BEGIN\nDBMS_UTILITY.compile_schema(schema => '$schm');\nEND;")
my $sth = $self->{dbh}->do("BEGIN\nDBMS_UTILITY.compile_schema(schema => '$schm', compile_all => FALSE);\nEND;")
or $self->logit("FATAL: " . $self->{dbh}->errstr . "\n", 0, 1);
}
}
Expand Down

0 comments on commit 927b07d

Please sign in to comment.