darold / ora2pg

Ora2Pg is a free tool used to migrate an Oracle database to a PostgreSQL compatible schema. It connects your Oracle database, scan it automatically and extracts its structure or data, it then generates SQL scripts that you can load into PostgreSQL.
http://www.ora2pg.com/
GNU General Public License v3.0
1.02k stars 343 forks source link

Ora2Pg Bug: grant privileges on partitioned and subpatitioned tables, syntax error #1569

Closed elexus closed 1 year ago

elexus commented 1 year ago

What we have. 3 tables, 1 is usual, 1 has only partitions, 1 has partitions and subpartitions (code is below). After magration using Ora2Pg (Grant type) I got syntax errors related to partitioned and subpartitioned tables. Words "PARTITION" and "SUBPARTITION" appear, but they shouldn't.

Oracle code: image

Postgresql code: image

darold commented 1 year ago

Commit 798ab89 fixes this issue.