Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 14969 invoked from network); 15 Mar 2010 18:44:26 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 15 Mar 2010 18:44:26 -0000 Received: (qmail 20986 invoked by uid 500); 15 Mar 2010 18:43:38 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 20943 invoked by uid 500); 15 Mar 2010 18:43:38 -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 20936 invoked by uid 99); 15 Mar 2010 18:43:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 18:43:38 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.220.226] (HELO mail-fx0-f226.google.com) (209.85.220.226) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Mar 2010 18:43:31 +0000 Received: by fxm26 with SMTP id 26so630248fxm.15 for ; Mon, 15 Mar 2010 11:43:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.5.156 with SMTP id 28mr5402310fav.74.1268678589200; Mon, 15 Mar 2010 11:43:09 -0700 (PDT) X-Originating-IP: [193.206.186.101] Date: Mon, 15 Mar 2010 19:43:07 +0100 Message-ID: <1f5d398f1003151143s35cbced8j4df12331182fe3b@mail.gmail.com> Subject: how to cascade on update? Not possible? From: Gabriele Kahlout To: Derby Discussion Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello, I've moved my database from SQLite into Java DB using SQLWrapper. I expected the references integrity constraint, to cascade on update. I.e. wColumn in refTable, references expColumn in expTable. Updating expColumn should update wColumn. However I get: java.sql.SQLIntegrityConstraintViolationException: UPDATE on table 'EXPRESSIONS' caused a violation of foreign key constraint 'SQL100315193342610' for key (la testa). The statement has been rolled back. The only reference I found, seems to suggest for UPDATE it's not possible to cascade. Is that the case? http://db.apache.org/derby/docs/10.5/ref/ --=20 Regards, K. Gabriele --- unchanged since 25/1/10 --- P.S. Unless a notification (LON), please reply either with an answer OR with " ACK" appended to this subject within 48 hours. Otherwise, I might resend. In(LON, this) =E2=88=A8 In(48h, TimeNow) =E2=88=A8 =E2=88=83x. In(x, MyInbo= x) =E2=88=A7 IsAnswerTo(x, this) =E2=88=A8 (In(subject(this), subject(x)) =E2=88=A7 In(ACK, subject(x)= ) =E2=88=A7 =C2=ACIsAnswerTo(x,this)) =E2=87=92 =C2=ACIResend(this). Also note that correspondence may be received only from specified a priori senders, or if the subject of this email ends with a code, eg. -LICHT01X, then also from senders whose reply contains it. =E2=88=80x. In(x, MyInbox) =E2=87=92 In(senderAddress(x), MySafeSenderList)= =E2=88=A8 (=E2=88=83y. In(y, subject(this) ) =E2=88=A7 In(y,x) =E2=88=A7 isCodeLike(y, -LICHT01X) = ).