db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dag H. Wanvik (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-4388) NullPointerException in RIGHT JOIN with NOT BETWEEN
Date Mon, 05 Oct 2009 22:59:31 GMT

    [ https://issues.apache.org/jira/browse/DERBY-4388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12762441#action_12762441

Dag H. Wanvik commented on DERBY-4388:

Thanks for this patch, Knut. I read the logic of InListOperatorNode.eliminateNots and that
lead me to believe that only the
*second* clone is necessary (the point being that the two "new" comparison operations not
share the same column reference. I tried this
by substituting leftOperand for leftClone in the first comparison (leftO < rightOList.elementAt(0)),
the test ran ok.
but it may be safer to clone both. Just thought I should mention it. 
Without the patch, the test fails, withit it works, so an good improvement, I think.

> NullPointerException in RIGHT JOIN with NOT BETWEEN
> ---------------------------------------------------
>                 Key: DERBY-4388
>                 URL: https://issues.apache.org/jira/browse/DERBY-4388
>             Project: Derby
>          Issue Type: Bug
>          Components: SQL
>    Affects Versions:,,,,,,
>            Reporter: Knut Anders Hatlen
>            Assignee: Knut Anders Hatlen
>         Attachments: d4388-1a.diff, d4388-1a.stat
> ij> create table t1(x int);
> 0 rows inserted/updated/deleted
> ij> create table t2(x int);
> 0 rows inserted/updated/deleted
> ij> insert into t2 values (1);
> 1 row inserted/updated/deleted
> ij> select * from t1 right join t2 on t1.x = t2.x where t1.x not between 0 and 4;
> X          |X          
> -----------------------
> ERROR 38000: The exception 'java.lang.NullPointerException' was thrown while evaluating
an expression.
> ERROR XJ001: Java exception: ': java.lang.NullPointerException'.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message