IMPORT configuration causes "Can't call method 'logit'" error in Ora2Pg v25.0
Hi,
It looks like there's a bug in Ora2Pg version 25.0 related to the IMPORT configuration directive.
I have a shared/common configuration file stored in a config folder, and I try to include it from another config file like this:
Main config:
cat config/ora2pg_new.conf IMPORT ./config/ora2pg_common.conf
However, when I run Ora2Pg with this config:
$ ora2pg -c config/ora2pg_new.conf -d -a "TABLE[XYZ]"
I get the following error:
Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14858, <GEN0> line 1.
This worked fine in earlier versions of Ora2Pg (e.g., 24.x), so it seems like a regression in v25.0.
Let me know if you need help reproducing the issue or more environment details. Thanks for maintaining this awesome tool!
Maybe there is a typo or hidden character in your config file?
I also encountered the same problem, even though the imported configuration file was empty.
Please try the current code from master, the error sounds like the regression that we fixed in 87d6d935e8d82d35385b030d108350b63147eb55.