You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-dev@db.apache.org by "Dag H. Wanvik (JIRA)" <ji...@apache.org> on 2014/08/06 20:12:12 UTC

[jira] [Updated] (DERBY-6693) Assert failure/ArrayIndexOutOfBoundsException when using COUNT in MERGE matching clause

     [ https://issues.apache.org/jira/browse/DERBY-6693?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dag H. Wanvik updated DERBY-6693:
---------------------------------

    Summary: Assert failure/ArrayIndexOutOfBoundsException when using COUNT in MERGE matching clause  (was: Assert failure/NPE when using COUNT in MERGE matching clause)

> Assert failure/ArrayIndexOutOfBoundsException when using COUNT in MERGE matching clause
> ---------------------------------------------------------------------------------------
>
>                 Key: DERBY-6693
>                 URL: https://issues.apache.org/jira/browse/DERBY-6693
>             Project: Derby
>          Issue Type: Bug
>            Reporter: Dag H. Wanvik
>
> This (meaningless) statement gives NPE in insane builds and
> assert failure in sane builds:
> {code}
> s.execute("create table t2(x int)");
> s.execute("create table t1(x int)");
> s.execute("insert into t2 values 3,4");
> s.executeUpdate("merge into t1 using t2 on (t1.x=t2.x) " + 
>    "when not matched then insert values (count(*))");
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)