Return-Path: X-Original-To: apmail-db-derby-user-archive@www.apache.org Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B84FF97C3 for ; Mon, 4 Jun 2012 13:36:06 +0000 (UTC) Received: (qmail 30610 invoked by uid 500); 4 Jun 2012 13:36:06 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 30531 invoked by uid 500); 4 Jun 2012 13:36:06 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 30523 invoked by uid 99); 4 Jun 2012 13:36:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 13:36:06 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of kristian.waagan@oracle.com designates 148.87.113.117 as permitted sender) Received: from [148.87.113.117] (HELO rcsinet15.oracle.com) (148.87.113.117) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2012 13:35:55 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q54DZWYZ013216 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 4 Jun 2012 13:35:33 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q54DZWpq005926 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 4 Jun 2012 13:35:32 GMT Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q54DZWpa009468 for ; Mon, 4 Jun 2012 08:35:32 -0500 Received: from [192.168.0.20] (/84.215.180.161) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 04 Jun 2012 06:35:32 -0700 Message-ID: <4FCCB9A2.3000208@oracle.com> Date: Mon, 04 Jun 2012 15:35:30 +0200 From: Kristian Waagan User-Agent: Mozilla/5.0 (X11; SunOS i86pc; rv:10.0.3) Gecko/20120424 Thunderbird/10.0.3 MIME-Version: 1.0 To: derby-user@db.apache.org Subject: Re: "Conglomerate could not be created"? References: <4FC8B339.8090502@gmail.com> <4FC9E882.8040609@gmail.com> <4FCCAF85.3040107@oracle.com> In-Reply-To: <4FCCAF85.3040107@oracle.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Source-IP: acsinet22.oracle.com [141.146.126.238] On 04.06.12 14:52, Rick Hillegas wrote: > On 6/2/12 3:18 AM, John English wrote: >> On 01/06/2012 15:19, John English wrote: >>> I'm having trouble with the following error: "Conglomerate could not be >>> created". It happens when I do this: >>> >>> INSERT INTO resource_usage (resid,itemid,itemtype) >>> (SELECT resid,?,? FROM resource_usage >>> WHERE itemid=? >>> AND itemtype=? >>> AND NOT EXISTS (SELECT resid FROM resource_usage >>> WHERE itemid=? AND itemtype=?)); >>> >> I also get the same error from this, which looks fairly innocuous to me: >> INSERT INTO resource_usage (resid,itemid,itemtype) >> (SELECT resid,20,'final' FROM resource_usage WHERE itemid=? AND >> itemtype=?); >> Is it perhaps because I'm inserting into the same table I'm selecting >> from? > Hi John, > > Do you have a stack trace for this error? My extremely simple attempt at reproducing this didn't succeed on trunk (10.10), and I could "duplicate" the matching rows (only changing the itemtype column). Do you also have the schema and example of data that triggers the problem? Are there many matching rows for the select? Thanks, -- Kristian > > Thanks > -Rick >> -- >> John English If we were to define a religion to be a system of thought >> which contains unprovable statements, so it contains an element of >> faith, then G�del has taught us that not only is mathematics a >> religion but it is the only religion able to prove itself to be one. >> � John Barrow, /Pi in the Sky / >> >