From 6a8d27201dc68ab7e630c558ec8ff3893212389c Mon Sep 17 00:00:00 2001 From: Gilles Darold Date: Thu, 7 Mar 2024 16:05:40 +0530 Subject: [PATCH] Update changelog and version to v24.2 --- changelog | 105 +++++++++++++++++++++++++ lib/Ora2Pg.pm | 2 +- lib/Ora2Pg/GEOM.pm | 2 +- lib/Ora2Pg/MySQL.pm | 2 +- lib/Ora2Pg/Oracle.pm | 2 +- lib/Ora2Pg/PLSQL.pm | 2 +- packaging/README | 10 +-- packaging/debian/ora2pg/DEBIAN/control | 2 +- packaging/slackbuild/Ora2Pg.SlackBuild | 2 +- packaging/slackbuild/Ora2Pg.info | 4 +- scripts/ora2pg_scanner | 2 +- 11 files changed, 120 insertions(+), 15 deletions(-) diff --git a/changelog b/changelog index 3db72ae4..02a2c54a 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,108 @@ +2024 03 07 - v24.2 + +This release fix several issues reported since last release and adds some +new features and improvements. + + * Allow DATA_EXPORT_ORDER to take a filename at value to be able to + give a custom table order. The file must contain the ordered list + of the tables. One table per line in upper case for Oracle. Thanks + to DataCloudGaze for the feature request. + * Add progress bar when --oracle_speed is used to avoid waiting for + the whole data export ends. + * Add replacement of the BITAND function by the & operator + * Add option -f, --format to set the output format for the reports. + It can be html or json. Default to html. Thanks to mgole001 for the + feature request. + * Add automatic addition of the partition key to the primary key. Prefix + all columns with the alias in the query to get data from Oracle. + * Add information about MSSQL masked columns in SHOW_COLUMN. + * Add information about columnstore and compression on MSCSQL tables with + action SHOW_TABLE. + * Add new configuration directive PARTITION_BY_REFERENCE to defined. + + How to export Oracle partition by reference. Possible values are none, + duplicate or the number of hash partitions to create. + + Value 'none' mean no translation and export of partition by reference + like before. Value 'duplicate' will duplicate the referenced column + in the partitioned table and apply the same partitioning from the + referenced table to the partitioned table. If the value is a number, + the table will be partitioned with the HASH method using the value + as the modulo. For example if you set it to 4 it will create 4 HASH + partitions. + + Default is none to not export the partitions by reference definition. + +Here is the full list of changes and acknowledgements: + + - Fix default values in MSSQL function declaration and missing END keyword. + - Fix parsing of MSSQL function with a single query. Thanks to Saravanan Newt + for the report. + - Fix negative Oracle decimal when comparing data. Thanks to es99-24 for the + report. + - Fix typos in documentation. Thanks to Simon Martin for the report. + - Avoid doubling the NAME keyword in the XMLELEMENT() function. + - Remove clause "REFERENCING OLD AS OLD NEW AS NEW" that is useless and throw + an error in PostgreSQL + - Fix DSN for MSSQL in autogenerated configuration file using --init_project. + - Fix parsing of REFERENCING clause in trigger. Thanks to Carens Kurniawan + Wijaya for the report. + - Fix case where ALL_TAB_COLUMNS and ALL_SDO_GEOM_METADATA was used instead + of USER_TAB_COLUMNS. Thanks to rvanouter for the report. + - Fix double quoting in partition by reference where clause. + - Disallow setting of PARTITION_BY_REFERENCE to duplicate when FDW_SERVER + is set. + - Fix trigger export with duplicate FOR EACH clause when a REFERENCING clause + is present. Thanks to Carens Kurniawan Wijaya for the report. + - Fix typo in variable name in ora2pg_scanner + - Fix export of default partition for MySQL. Thanks to Priyanshi Gupta for + the report. + - Fix TEST_DATA action with issues on foreign server and import foreign schema + declaration. Thanks to Florent Jardin for the report. + - Fix export of NOT NULL constraint with column replacement. Thanks to Florent + Jardin for the report. + - Prevent reading file ora2pg_stdout_locker when it does not exist. Thanks to + Florent Jardin for the report. + - Fix translation of timestamp with precision < 6. Thanks to Andrei Briukhov + for the report. + - Fix json_arrayagg with returning clause, type was not translated. + - Fix data export for table partitioned by reference with duplicate method. + The query to extract data on Oracle side add the duplicated column and + perform the join with the referenced table using the FK definition. + - Fix partition by LIST export with a useless cast to text. Thanks to + Priyanshi Gupta for the report. + - Added closing curly bracket for object details. Thanks to andreas42 for + the patch. + - Added quotes around value of "human days cost" and "migration level". + Thanks to andreas42 for the patch. + - Format object type detail output as JSON array. Thanks to andreas42 for + thepatch. + - Fix variable declaration in previous commit + - Fix MSSQL table export with nonexistent column auto_created in version + bellow 2017. Thanks to Florent Jardin for the report. + - Use ADD CONSTRAINT syntax to specify name of primary key. Thanks to Martin + Karlgren for the patch. + - Skip unwanted work on PG database when option --oracle_speed is enabled, + especially drop of constraints. Thanks to John Tian for the report. + - Remove trailing ); from primary key statements when reading from file. + Thanks to Martin Karlgren for the patch. + - Fix option in CREATE USER MAPPING for export of DBLINK. + - Fix translation of MSSQL floating point datatype to use float(n) notation. + - Exclude from assessment objects in Oracle bin. + - Add Oracle package HTP and HTF to migration assessment. + - Fix MSSQL foreign key export with multiple columns referenced. + - Fix MSSQL export of unique constraints that was merging columns of several + unique constraints for the same table into a single constraint. + - Fix case of MSSQL datetime default value 0 that must be converted to + '1900-01-01 00:00:00' + - Add rewrite of MSSQL getutcdate() function. + - Fix MSSQL index type and add compression + columnstore information + - Add clause IF NOT EXIST to all CREATE EXTENSION calls + - Fix MSSQL bit data migration through tds_fdw, it is already exported + as boolean by the fdw. + - Fix duplicated indexes in MSSQL export. + - Add export of MSSQL indexes with columns included (CREATE INDEX+INCLUDE). + 2023 09 08 - v24.1 This release fix several issues reported since last release and adds some diff --git a/lib/Ora2Pg.pm b/lib/Ora2Pg.pm index ddd65b6c..0ba588a6 100644 --- a/lib/Ora2Pg.pm +++ b/lib/Ora2Pg.pm @@ -43,7 +43,7 @@ use Encode; #set locale to LC_NUMERIC C setlocale(LC_NUMERIC,"C"); -$VERSION = '24.1'; +$VERSION = '24.2'; $PSQL = $ENV{PLSQL} || 'psql'; $| = 1; diff --git a/lib/Ora2Pg/GEOM.pm b/lib/Ora2Pg/GEOM.pm index 0f69012f..217a0aef 100644 --- a/lib/Ora2Pg/GEOM.pm +++ b/lib/Ora2Pg/GEOM.pm @@ -40,7 +40,7 @@ use vars qw($VERSION); use strict; -$VERSION = '24.1'; +$VERSION = '24.2'; # SDO_ETYPE # Second element of triplet in SDO_ELEM_INFO diff --git a/lib/Ora2Pg/MySQL.pm b/lib/Ora2Pg/MySQL.pm index 9290c883..fd7d45b7 100644 --- a/lib/Ora2Pg/MySQL.pm +++ b/lib/Ora2Pg/MySQL.pm @@ -10,7 +10,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '24.1'; +$VERSION = '24.2'; # Some function might be excluded from export and assessment. our @EXCLUDED_FUNCTION = ('SQUIRREL_GET_ERROR_OFFSET'); diff --git a/lib/Ora2Pg/Oracle.pm b/lib/Ora2Pg/Oracle.pm index c7ea8b9e..3405cd56 100644 --- a/lib/Ora2Pg/Oracle.pm +++ b/lib/Ora2Pg/Oracle.pm @@ -11,7 +11,7 @@ use Encode; #set locale to LC_NUMERIC C setlocale(LC_NUMERIC,"C"); -$VERSION = '24.1'; +$VERSION = '24.2'; # Some function might be excluded from export and assessment. our @EXCLUDED_FUNCTION = ('SQUIRREL_GET_ERROR_OFFSET'); diff --git a/lib/Ora2Pg/PLSQL.pm b/lib/Ora2Pg/PLSQL.pm index ed181017..6af59510 100644 --- a/lib/Ora2Pg/PLSQL.pm +++ b/lib/Ora2Pg/PLSQL.pm @@ -31,7 +31,7 @@ use POSIX qw(locale_h); setlocale(LC_NUMERIC,"C"); -$VERSION = '24.1'; +$VERSION = '24.2'; #---------------------------------------------------- # Cost scores used when converting PLSQL to PLPGSQL diff --git a/packaging/README b/packaging/README index 38fa9224..51b1d6ff 100644 --- a/packaging/README +++ b/packaging/README @@ -12,13 +12,13 @@ RPM/ The binary package may be found here: - ~/rpmbuild/RPMS/noarch/ora2pg-24.1-1.noarch.rpm + ~/rpmbuild/RPMS/noarch/ora2pg-24.2-1.noarch.rpm or - /usr/src/redhat/RPMS/i386/ora2pg-24.1-1.noarch.rpm + /usr/src/redhat/RPMS/i386/ora2pg-24.2-1.noarch.rpm To install run: - rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-24.1-1.noarch.rpm + rpm -i ~/rpmbuild/RPMS/noarch/ora2pg-24.2-1.noarch.rpm slackbuild/ @@ -30,11 +30,11 @@ slackbuild/ then take a look at /tmp/build/ to find the Slackware package. To install run the following command: - installpkg /tmp/build/ora2pg-24.1-i386-1gda.tgz + installpkg /tmp/build/ora2pg-24.2-i386-1gda.tgz or - installpkg /tmp/build/ora2pg-24.1-x86_64-1gda.tgz + installpkg /tmp/build/ora2pg-24.2-x86_64-1gda.tgz following the architecture. diff --git a/packaging/debian/ora2pg/DEBIAN/control b/packaging/debian/ora2pg/DEBIAN/control index a4be2243..509a9ce7 100644 --- a/packaging/debian/ora2pg/DEBIAN/control +++ b/packaging/debian/ora2pg/DEBIAN/control @@ -1,5 +1,5 @@ Package: ora2pg -Version: 24.1 +Version: 24.2 Priority: optional Architecture: all Essential: no diff --git a/packaging/slackbuild/Ora2Pg.SlackBuild b/packaging/slackbuild/Ora2Pg.SlackBuild index 618bc05a..3ffd436e 100644 --- a/packaging/slackbuild/Ora2Pg.SlackBuild +++ b/packaging/slackbuild/Ora2Pg.SlackBuild @@ -12,7 +12,7 @@ ## Fill these variables to your needs ## NAMESRC=${NAMESRC:-ora2pg} -VERSION=${VERSION:-24.1} +VERSION=${VERSION:-24.2} EXT=${EXT:-tar.bz2} NAMEPKG=${NAMEPKG:-ora2pg} PKGEXT=${PKGEXT:-tgz/txz} diff --git a/packaging/slackbuild/Ora2Pg.info b/packaging/slackbuild/Ora2Pg.info index 4c9cdbb9..3fd3bb18 100644 --- a/packaging/slackbuild/Ora2Pg.info +++ b/packaging/slackbuild/Ora2Pg.info @@ -1,7 +1,7 @@ PRGNAM="Ora2Pg" -VERSION="24.1" +VERSION="24.2" HOMEPAGE="http://ora2pg.darold.net/" -DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-24.1.tar.gz" +DOWNLOAD="http://downloads.sourceforge.net/ora2pg/ora2pg-24.2.tar.gz" MD5SUM="" DOWNLOAD_x86_64="UNTESTED" MD5SUM_x86_64="" diff --git a/scripts/ora2pg_scanner b/scripts/ora2pg_scanner index 03314af4..be08bbab 100755 --- a/scripts/ora2pg_scanner +++ b/scripts/ora2pg_scanner @@ -26,7 +26,7 @@ use strict; use Getopt::Long qw(:config no_ignore_case bundling); -my $VERSION = '24.1'; +my $VERSION = '24.2'; my @DB_DSN = (); my $OUTDIR = '';