Page 1 of 1

ORA-22816: unsupported feature with RETURNING clause with TemporaryLobUpdate on true

Posted: Wed 28 Apr 2021 16:41
by AdamKG
Hello,
I started to get Oracle error ORA-22816: unsupported feature with RETURNING clause after upgrade from 11.3.2 to 11.4.3.

When I have a view on a single table for instance:

Code: Select all

create view v_odac_clob as
select * from odac_clob
With instead of trigger for example:

Code: Select all

create or replace trigger t_v_odac_clob
  instead of insert or update or delete on v_odac_clob  
  for each row
begin
  if inserting then
    insert into odac_clob(code, title, value)
    values
      (:new.code, :new.title, :new.value);
  end if;

  if updating then
    update odac_clob u
       set u.code = :new.code,
           u.title = :new.title,
           u.value = :new.value
     where u.code = :old.code
       and u.title = :old.title;
  end if;

  if deleting then
    delete from odac_clob u
     where u.code = :old.code
       and u.title = :old.title;
  end if;
  
end t_v_odac_clob;
In 11.3.2 I got same error but setting Options.TemporaryLobUpdate := True fixed it. Now in 11.4.3 it appears to me that TemporaryLobUpdate is ignored and update statement is always generated with returning clause which will not work with instead of triggers.

Re: ORA-22816: unsupported feature with RETURNING clause with TemporaryLobUpdate on true

Posted: Mon 17 May 2021 20:00
by AdamKG
Did you manage to confirm this bug?

Re: ORA-22816: unsupported feature with RETURNING clause with TemporaryLobUpdate on true

Posted: Fri 18 Jun 2021 10:54
by MaximG
Sorry for the late reply. Yes, we have reproduced the issue. We'll get back to you with an update soon.