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.
I am trying to migrate from Oracle to Postgres. During the execution of the TABLE_ora2pgoutput.sql file, I get the following error:
ERROR: argument of AND must be type boolean, not type integer
the line in question is:
ALTER TABLE abc ADD CONSTRAINT abc_check CHECK ((role_id AND role_id::text <> '') OR (field_id AND field_id::text <> ''));
Is this something I would have to correct manually in the generated sql file or is it a generation error?
Hi,
I am trying to migrate from Oracle to Postgres. During the execution of the TABLE_ora2pgoutput.sql file, I get the following error: ERROR: argument of AND must be type boolean, not type integer
the line in question is: ALTER TABLE abc ADD CONSTRAINT abc_check CHECK ((role_id AND role_id::text <> '') OR (field_id AND field_id::text <> ''));
Is this something I would have to correct manually in the generated sql file or is it a generation error?
Thanks and best regards
Stephan