Closed jschmidwgit closed 2 weeks ago
Hello, ok i found a solution. I created a view where i filter out null characters.
CREATE OR REPLACE FORCE VIEW V_NOTIZ_T (NOTIZ_ID, AV_KEY, NOTIZ_TYP, NOTIZ_TEXT, LOCKING_VERSION) BEQUEATH DEFINER AS SELECT NOTIZ_ID, AV_KEY, NOTIZ_TYP, replace(DBMS_LOB.substr(notiz_text, 1000),chr(0),''), LOCKING_VERSION FROM notiz_t;
or is there another way, so that fdw is able to filter out null values?
You could use the strip_zeros
option, as documented:
ALTER FOREIGN TABLE v_notiz_t ALTER notiz_text OPTIONS (ADD strip_zeros 'on');
That should automatically strip all zero bytes from the column.
I did not see it before. Now it works perfectly.
Thanks for your quick reply.
Jan
Hello,
When i try to import a foreign table i get this encoding error:
The table has a column notiz_text of type CLOB
My settings are like this:
On the Oracle Server it looks like this:
so everything is set to utf-8 but i still get this conversion error.
thanks,
Jan