问题
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