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] [Updated] (DERBY-6693) Assert failure/ArrayIndexOutOfBoundsException when using COUNT in MERGE matching clause
Date Wed, 06 Aug 2014 18:12:12 GMT

     [ 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)

Mime
View raw message