-
Notifications
You must be signed in to change notification settings - Fork 17
/
pck_b.pkb
42 lines (30 loc) · 806 Bytes
/
pck_b.pkb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
create package body pck_b as -- {
function fun_unused return varchar2 is -- {
begin
return 'unused';
end fun_unused; -- }
function fun_another_unused return varchar2 is -- {
begin
return 'another unused';
end fun_another_unused; -- }
function fun_2 return varchar2 is -- {
rec used_rec_t;
begin
select id into rec.id
from tab_01
where id = 1;
return 'fun_2';
end fun_2; -- }
function not_really_used return varchar2 is -- {
type rec_t is record (
id number,
unused varchar2(100)
);
rec rec_t;
begin
select id into rec.id from tab_01 where rownum = 1;
return fun_2 || pck_a.foo_bar_baz;
end not_really_used; -- }
end pck_b; -- }
/
show errors