Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: Wrong execution under Debugger

Re: Wrong execution under Debugger

From: Lloyd Sheen <sqlguy_at_hotmail.com>
Date: Thu, 30 May 2002 14:28:48 GMT
Message-ID: <AGqJ8.134736$ah_.19108@news01.bloor.is.net.cable.rogers.com>


Just ran this using SQL-Programmer and I can see nothing unusual. Do you have one row in dual?

Lloyd

"Sergey M" <msu_at_pronto.msk.ru> wrote in message news:ad4g16$8v4$1_at_serv2.vsi.ru...
> Hello!
>
> I have executed below code under debugger (step by step) and I have very
> interesting result.
> Try!!!
>
> create or replace function Mart_s return number is
> num number;
> begin
> select count(*) into num from dual;
> if num = 1 then -- 1 start
> select count(*) into num from dual;
> if num = 1 then -- 2 start
> commit;
> select count(*) into num from dual;
> commit;
> else -- 2 else
> if num = 1 then -- 3 start
> select count(*) into num from dual;
> end if; -- 3 end;
> end if; -- 2 end;
> else -- 1 else;
> null;
> end if; -- 1 end;
> return num;
> end;
>
> May be Anybody can explain me this result.
>
> Best regards,
> Sergey M.
>
>
>
>
>
>
Received on Thu May 30 2002 - 09:28:48 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US