Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 16E55C1A1 for ; Thu, 7 Aug 2014 13:46:13 +0000 (UTC) Received: (qmail 39795 invoked by uid 500); 7 Aug 2014 13:46:12 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39774 invoked by uid 500); 7 Aug 2014 13:46:12 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 39762 invoked by uid 99); 7 Aug 2014 13:46:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 13:46:12 +0000 Date: Thu, 7 Aug 2014 13:46:12 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (DERBY-6690) ROW_NUMBER should not be allowed in generation clause MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-6690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-6690: --------------------------------- Affects Version/s: 10.11.1.1 > ROW_NUMBER should not be allowed in generation clause > ----------------------------------------------------- > > Key: DERBY-6690 > URL: https://issues.apache.org/jira/browse/DERBY-6690 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.10.2.0, 10.11.1.1 > Reporter: Knut Anders Hatlen > Assignee: Dag H. Wanvik > Attachments: derby-6690.diff > > > The generation clause is allowed to have a call to the ROW_NUMBER function. But it fails when a new row is inserted. It should be disallowed in CREATE TABLE and ALTER TABLE ADD COLUMN. > {noformat} > ij> create table t (x int generated always as (row_number() over ())); > 0 rows inserted/updated/deleted > ij> insert into t values default; > ERROR XJ001: Java exception: 'ASSERT FAILED cannot get interface without operand: org.apache.derby.shared.common.sanity.AssertFailure'. > {noformat} -- This message was sent by Atlassian JIRA (v6.2#6252)