Closed cchet closed 2 months ago
I also have found out that COPY FROM expects two backslashes maybe this is the reason why the string becomes invalid and the COPY fails because of an invalid JSON. Our data in Oracle has only one backslash for escaping for instance quotes.
I tried INSERT mode and TRANSFORM_VALUE but TRANSFORM_VALUE seems top produce an invalid SQL as commented here https://github.com/darold/ora2pg/issues/1766
Commit fbb2ef6 fixes this issue.
We face the issue that the escape characters from json strings stored as CLOBs in Oracle DB are lost during COPY and cause 'invalid Json type' on the PostgreSQL site.
In the Oracle database the quote is escaped but during COPY it seems to somehow get lost. (Shows a portion of the json string)
We tried NOESCAPE [0 | 1] setting but it did not change anything.
These are the encoding settings:
I am not quite sure where the problem is and how to solve it, would very appreciate help on this.
ora2pg docker image: 24.3