ora2pg icon indicating copy to clipboard operation
ora2pg copied to clipboard

V25.0 -- when configuration directive SKIP is specified in configure file, export_schema.sh throws Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867

Open t808194 opened this issue 4 months ago • 1 comments

V25.0 seems missed the support of SKEP configuration directive,

e.g, if we specify "SKIP fkeys" in the configuration file,

Support for turning off certain schema features in the postgres side

during schema export. Values can be : fkeys, pkeys, ukeys, indexes, checks

separated by a space character.

fkeys : turn off foreign key constraints

pkeys : turn off primary keys

ukeys : turn off unique column constraints

indexes : turn off all other index types

checks : turn off check constraints

#SKIP fkeys pkeys ukeys indexes checks SKIP fkeys

the execution of export_schema.sh throws errors. $ ./export_schema.sh Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t SEQUENCE -o sequence.sql -b ./schema/sequences -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t SEQUENCE_VALUES -o sequence_value.sql -b ./schema/sequence_values -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t TABLE -o table.sql -b ./schema/tables -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t PACKAGE -o package.sql -b ./schema/packages -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t VIEW -o view.sql -b ./schema/views -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t GRANT -o grant.sql -b ./schema/grants -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t TRIGGER -o trigger.sql -b ./schema/triggers -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t FUNCTION -o function.sql -b ./schema/functions -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t PROCEDURE -o procedure.sql -b ./schema/procedures -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t TABLESPACE -o tablespace.sql -b ./schema/tablespaces -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t PARTITION -o partition.sql -b ./schema/partitions -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t TYPE -o type.sql -b ./schema/types -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t MVIEW -o mview.sql -b ./schema/mviews -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t DBLINK -o dblink.sql -b ./schema/dblinks -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t SYNONYM -o synonym.sql -b ./schema/synonyms -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -p -t DIRECTORY -o directorie.sql -b ./schema/directories -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -t PACKAGE -o package.sql -b ./sources/packages -c ./config/ora2pg.conf Can't call method "logit" on an undefined value at /usr/local/share/perl5/Ora2Pg.pm line 14867, <GEN0> line 438. Running: ora2pg -t VIEW -o view.sql -b ./sources/views -c ./config/ora2pg.conf ^C

t808194 avatar Aug 23 '25 14:08 t808194

Please try the current code from master, your error messages look like the regression that we fixed in 87d6d935e8d82d35385b030d108350b63147eb55 (not exactly related to SKIP directive, but more general)

SebAlbert avatar Sep 12 '25 15:09 SebAlbert