Bug #4157
Name conversion report problem
0%
History
#1 Updated by Vladimir Tsichevski almost 5 years ago
The problem¶
The page https://proj.goldencode.com/projects/p2j/wiki/Chapter_13_Other_Customization says:
"When database names are converted, a history report is generated for each persistent schema. A combined report is created for all temp-table/workfile schemas. This report is a simple text file which is placed in the project root directory. It is named schema_names_{database}.rpt, where database is the name of the database schema, as extracted from the associated .df file, or the constant _temp for the combined report of temp-table schemas."
In reality, after a successful conversion only these two files are ever created:
schema_names__meta.rpt schema_names__temp.rpt
And the schema_names__meta.rpt
file contains reports for both application and standard schemes. This does not match the documentation quote above.
The origin¶
A list of schema files, containing all the database schemes, is passed to the converter, so the variable dbName
(file p2o.xml
), which is used to form the report file name, is assigned every time a list entry is processed. And, since the report is generated only once after the whole list was processed, the name of the last file in the list is used to form the name of the output report file.
That to be done¶
Either the script, or the documentation, or both shall be fixed to at least match each other.