Skip to Main Content

SQL Developer

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SQL Developer 18.3, 18.4 - Code Outline bug

Nikolay LoginovJan 18 2019 — edited Mar 11 2019

Hi!

Test script:

create table list_hash_tab(

id number,

code varchar2(10),

description varchar2(50),

created_date date

)

partition by list(code)

subpartition by hash(id)

(partition part_aa values('AA')(subpartition part_aa_01,

  subpartition part\_aa\_02

),

partition part_bb values ('BB')

(

  subpartition part\_bb\_01,

  subpartition part\_bb\_02

)

);

/

declare

l_code varchar2(10);

begin

for i in 1 .. 40 loop

if mod(i, 2) = 0 then

  l\_code := 'BB';

else

  l\_code := 'AA';

end if;

insert into list\_hash\_tab (id, code, description, created\_date)

values (i, l\_code, 'Description for ' || i || ' ' || l\_code, sysdate);

end loop;

commit;

end;

/

create or replace package partition_test

as

 procedure prc\_test;

end partition_test;

/

create or replace package body partition_test

as

procedure prc_test

is

p_obj_id number;

list_ro list_hash_tab.id%type;

begin

select object_id into p_obj_id from user_objects where subobject_name = 'PART_AA_01';

select id into list_row from list_hash_tab subpartition(dataobj_to_partition(list_hash_tab, p_obj_id));

prc_tes end partition_test;

/

If we open package and Code Outline then(package is valid)

pastedImage_5.png

This post has been answered by Vadim Tropashko-Oracle on Jan 18 2019
Jump to Answer
Comments
Post Details
Added on Jan 18 2019
1 comment
319 views