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

Home -> Community -> Usenet -> c.d.o.misc -> Re: "order siblings by" problem with Oracle 9.0.1.1

Re: "order siblings by" problem with Oracle 9.0.1.1

From: Oleg Paraschenko <usenet_at_sein.sportwetten.spb.ru>
Date: 21 Feb 2003 05:09:05 -0800
Message-ID: <70f723dc.0302210509.1f294e5f@posting.google.com>


Hello Vladimir,

"Vladimir M. Zakharychev" <bob_at_dpsp-yes.com> wrote in message news:<b2qua4$94o$1_at_babylon.agtel.net>... ...
> So I think this is a bug in PL/SQL (is was claimed that 9i has
> unified engine used by both SQL and PL/SQL, but apparently
> this was not the case until 9.2).

  Thank you for this information. Slightly modified code works, for example:

declare
 v integer;
 type t_cursor is ref cursor;
 c t_cursor;
begin
 open c for 'select x from (
  select 1 x from dual
 )
 start with x=1
 connect by prior x = x - 1
 order siblings by x';
 fetch c into v;
 dbms_output.put_line ('X is:'||v);
end;
/

  Anyway, I don't like this solution and will migrate to 9.2.

--
Oleg
Received on Fri Feb 21 2003 - 07:09:05 CST

Original text of this message

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