
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
| |
Size |
|
d3321.diff |
2008-03-05 12:52 PM |
Thomas Nielsen |
3 kB |
|
d3321.stat |
2008-03-05 12:52 PM |
Thomas Nielsen |
0.2 kB |
|
derby.log |
2008-01-16 10:47 AM |
Jørgen Løland |
3 kB |
|
|
Environment:
|
Committed revision 651700 to 10.3
|
|
Issue Links:
|
Reference
|
|
This issue relates to:
|
|
DERBY-3301
Incorrect result from query with nested EXIST
|
|
|
|
|
|
|
|
| Resolution Date: |
06/Mar/08 04:51 PM
|
|
Queries with 'not exists' followed by a nested subquery results in NPE:
-----------8<--------------
connect 'jdbc:derby:testdb;create=true';
create table a (aa int, bb int);
-- 0 rows inserted/updated/deleted
create table b (bb int);
-- 0 rows inserted/updated/deleted
insert into a values (1, 1), (1, 2), (2, 2);
-- 3 rows inserted/updated/deleted
insert into b values (1);
-- 1 row inserted/updated/deleted
select * from a
where not exists
(select bb from b where a.bb=b.bb);
-- AA |BB
-- ----------------------
-- 1 |2
-- 2 |2
select bb from (select bb from b) p;
-- BB
-- -----------
-- 1
select * from a
where not exists
(select bb from (select bb from b) p where a.bb=p.bb);
-- ERROR XJ001: Java exception: ': java.lang.NullPointerException'.
------------>8----------------
|
|
Description
|
Queries with 'not exists' followed by a nested subquery results in NPE:
-----------8<--------------
connect 'jdbc:derby:testdb;create=true';
create table a (aa int, bb int);
-- 0 rows inserted/updated/deleted
create table b (bb int);
-- 0 rows inserted/updated/deleted
insert into a values (1, 1), (1, 2), (2, 2);
-- 3 rows inserted/updated/deleted
insert into b values (1);
-- 1 row inserted/updated/deleted
select * from a
where not exists
(select bb from b where a.bb=b.bb);
-- AA |BB
-- ----------------------
-- 1 |2
-- 2 |2
select bb from (select bb from b) p;
-- BB
-- -----------
-- 1
select * from a
where not exists
(select bb from (select bb from b) p where a.bb=p.bb);
-- ERROR XJ001: Java exception: ': java.lang.NullPointerException'.
------------>8---------------- |
Show » |
| No work has yet been logged on this issue.
|
|