Bug: refactoring doesn't work properly with folded code

PeterW

Member³
Use the following code in a program window:

Code:
create or replace procedure test
is
   l_dummy pls_integer;
begin
   for i in 1..10
   loop
      l_dummy := i;
   end loop;
end test;

When you fold the for-loop on line 5 (by pressing the minus-sign) and refactor the variable l_dummy to l_dummy2, you get the following result (after unfolding the for-loop):

Code:
create or replace procedure test
is
   l_dummy2 pls_integer;
begin
   for i in 1..10
   loop
      l_dummy := i;
   end loop;
end tel_dummy2

I encountered similar behaviour with find/replace here.

Version: 8.0.0.1480
 
Back
Top