Oracle Reports A READ-ONLY bind variable used in OUT or IN-OUT context

£可爱£侵袭症+ 提交于 2020-03-04 20:04:33

问题


I have a formula column in my report as you can see in the image. When I compile it, I have an error: "A READ-ONLY bind variable used in OUT or IN-OUT context"

My query gets 1 line result. Properties like in the image. Why I got this error and what is the solution?


回答1:


Function code is wrong (obviously; Oracle told you so). Should be something like this:

function CF_1Formula return char is
begin
  return case when :kart_geldimi = 'E' then 'sss'
              else null
         end;
end;

Basically, you created something like a circular reference and tried to use formula column as the OUT value (that's what :cf_1 := 'sss'; did).



来源:https://stackoverflow.com/questions/60340337/oracle-reports-a-read-only-bind-variable-used-in-out-or-in-out-context

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!