-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathps_.sql
More file actions
32 lines (24 loc) · 656 Bytes
/
ps_.sql
File metadata and controls
32 lines (24 loc) · 656 Bytes
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
--
-- Used by ps_upwards.sql and ps_downwards.sql
--
define complete_name=&1
define proc=&2
set verify off
@spool c:\temp\ps_.dot
declare
signature varchar2(32);
begin
if length('&complete_name') = 32 and instr('&complete_name', '.') = 0 then
-- complete_name seems to be a signature.
signature := '&complete_name';
else
-- complete name seems to be in the 'package.procedure' form:
select signature into signature
from plscope_callable
where lower(complete_name) = lower('&complete_name');
end if;
plscope.&proc(signature, 'dot');
end;
/
spool off
@dot c:\temp\ps_