Finding a SQL bug in 9.2.0.8
From: DG problem <skatefree_at_gmail.com>
Date: Thu, 4 Sep 2008 22:11:18 -0700 (PDT)
Message-ID: <1cdd426f-cb03-41e5-8ddb-fbb40632ab18@l43g2000hsh.googlegroups.com>
-- )
);
Date: Thu, 4 Sep 2008 22:11:18 -0700 (PDT)
Message-ID: <1cdd426f-cb03-41e5-8ddb-fbb40632ab18@l43g2000hsh.googlegroups.com>
On a HP-UX machine running Oracle Enterprize 9208
This query (has been simplified)
select a,b
from t1
where (a,b) not in (
-- select * from (
select a,b from t1 where a in (1,2)
-- )
);
returns a different number of rows to this query
select a,b
from t1
where (a,b) not in (
select * from (
select a,b
from t1
where a in (1,2)
)
);
The last query returns the correct number of rows.
The sub query has a complex select part which includes
Case When ... in (8,10) and Lag(...,1,null) over (order by ..., ...) = ...
This seems like a bug to me, but has anyone got any tips on finding the bug in metalink? Received on Fri Sep 05 2008 - 00:11:18 CDT