Hi!
Make new proc:
Now test it in Test Window with default value of bind variables:
and get result:
oops, why long value is not null?!?
for example, this test in Sql Windows:
Anton.
Make new proc:
Code:
create or replace procedure killme1 (p_lsValue in long, p_sValue in varchar2, p_nLongLength out number, p_nVarcharLength out number)
is
lsValue long := null;
sValue varchar2(4000);
begin
if p_lsValue is not null then
lsValue := p_lsValue;
p_nLongLength := length (lsValue);
end if;
if p_sValue is not null then
sValue := p_sValue;
p_nVarcharLength := length (sValue);
end if;
end killme1;
and get result:
oops, why long value is not null?!?
for example, this test in Sql Windows:
Code:
declare
nlonglength number;
nvarcharlength number;
begin
killme1 (null, null, nlonglength, nvarcharlength);
dbms_output.put_line (nvl (nlonglength,0));
dbms_output.put_line (nvl (nvarcharlength,0));
end;
output:
0
0