Details
Description
The reference manual topic on Boolean expressions - http://db.apache.org/derby/docs/10.10/ref/rrefsqlj23075.html - says that EXISTS should return FALSE if the subquery returns no rows. In reality, it returns NULL:
ij> create table t(x int);
0 rows inserted/updated/deleted
ij> values exists(select * from t);
1
NULL
1 row selected
SQL:2011, part 2, 8.10 <exists predicate> also says that FALSE is the correct result if the cardinality is 0.
Attachments
Attachments
Issue Links
- is duplicated by
-
DERBY-6409 Wrong result from quantified comparison
- Closed
- is related to
-
DERBY-6577 Quantified comparison returns wrong result in CASE, COALESCE, IN and BETWEEN
- Closed
-
DERBY-6481 Derby 10.10 backport issue (winter/spring 2014)
- Closed
- relates to
-
DERBY-6409 Wrong result from quantified comparison
- Closed