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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Smells like oracle bug?

RE: Smells like oracle bug?

From: Laimutis Nedzinskas <Laimutis.Nedzinskas_at_landsbanki.is>
Date: Thu, 13 Jul 2006 16:12:33 -0000
Message-ID: <5A8896FB2AFC5445A7DCFC5903CCA6B02CA30F@W03856.li01r1d.lais.net>


I had the same thing with null values and function-based indexes. Oracle does not like it.  


From: oracle-l-bounce_at_freelists.org [mailto:oracle-l-bounce_at_freelists.org] On Behalf Of Jared Still Sent: 13. júlí 2006 16:04
To: gints.plivna_at_gmail.com
Cc: oracle-l
Subject: Re: Smells like oracle bug?

It appears that Oracle is taking your hint quite seriously.

As there is no data in idx2 due to the only value in the id2 column being null, Oracle is not returning any rows.

Take idx2 out of the hint, and you get data.

-- 
Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist



On 7/13/06, Gints Plivna <gints.plivna_at_gmail.com> wrote: 


...
SQL> create index idx2 on blahh (id2); Index created. SQL> insert into blahh values (1, null); 1 row created.
...
SQL> select 'x' from dual where exists ( 2 select /*+ index_ffs (blahh idx1 idx2) */ 'z' from blahh where 3 (id1 = 1 and id2 is null) or (id1 is null and id2 = 1)) 4 / no rows selected Fyrirvari/Disclaimer http://www.landsbanki.is/disclaimer -- http://www.freelists.org/webpage/oracle-l
Received on Thu Jul 13 2006 - 11:12:33 CDT

Original text of this message

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