[ http://issues.apache.org/jira/browse/DERBY-1574?page=all ]
A B updated DERBY-1574: ----------------------- Affects Version/s: 10.1.3.0 10.1.2.1 10.1.1.0 10.0.2.1 10.0.2.0 10.0.2.2 10.1.3.2 10.1.4.0 10.2.0.0 Adding additional versions to the "Affects" list, per my previous comment. Since I was able to reproduce the problem in my 10.0, 10.1, and 10.2 codelines I just set everything from 10.0 and forward as affected. If that's not the correct thing to do, please advise and/or update as appropriate. Thanks. > NullPointerException in UPDATE with COALESCE and subquery > --------------------------------------------------------- > > Key: DERBY-1574 > URL: http://issues.apache.org/jira/browse/DERBY-1574 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.0, 10.0.2.1, 10.0.2.2, 10.1.1.0, 10.2.0.0, > 10.1.2.1, 10.1.3.0, 10.1.4.0, 10.1.3.1, 10.1.3.2 > Environment: Java 1.5.0_06 > Reporter: Christian d'Heureuse > Priority: Minor > > The following statements generate a NullPointerException: > CREATE TABLE t1 (i INTEGER); > CREATE TABLE t2 (i INTEGER); > UPDATE t1 > SET i = COALESCE( > (SELECT i FROM t2 WHERE t2.i=t1.i), > 0); > Any further SQL statements generate an internal error in RawStore, e.g.: > SELECT * FROM t1; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira