oracle_fdw
oracle_fdw copied to clipboard
Add support for NCLOB column type
This uses the TO_CLOB()
Oracle function to convert NCLOB values into CLOB values.
Doc: https://docs.oracle.com/database/121/SQLRF/functions218.htm
Do you see any downsides to doing this?
Only tested with SELECT & VACUUM.
The comment in the NCLOB handling code previously stated:
* We don't support NCLOB because Oracle cannot
* transform it to the client character set automatically.
I have not verified whether this trick solves the character set conversion issue.
Thanks for the initiative! I think that this is missing write support. A regression test is also necessary, but I could help with that.
Added tests. Inserting seems to work fine using the same logic as CLOB type.
Or are there any gotchas that didn't occur to me?
Thanks! I'll take a close look at that when I come back from vacation on Jan 9.
Are you going to send an updated patch?