Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 7867 invoked from network); 4 Jul 2007 18:15:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jul 2007 18:15:23 -0000 Received: (qmail 52292 invoked by uid 500); 4 Jul 2007 18:15:25 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 51850 invoked by uid 500); 4 Jul 2007 18:15:24 -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 51834 invoked by uid 99); 4 Jul 2007 18:15:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 11:15:24 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [63.82.107.6] (HELO red.amberpoint.com) (63.82.107.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Jul 2007 11:15:20 -0700 Received: from [127.0.0.1] (bp-laptop.edgility.com [10.10.11.153]) by red.amberpoint.com (8.14.0/8.12.11) with ESMTP id l64IEvD4012516 for ; Wed, 4 Jul 2007 11:14:57 -0700 (PDT) Message-ID: <468BE3A1.2040205@amberpoint.com> Date: Wed, 04 Jul 2007 11:14:57 -0700 From: Bryan Pendleton User-Agent: Thunderbird 1.5.0.12 (Windows/20070509) MIME-Version: 1.0 To: Derby Discussion Subject: Re: before update trigger References: <131701c7be55$570cc220$8700a8c0@desktop2> In-Reply-To: <131701c7be55$570cc220$8700a8c0@desktop2> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org The ability to use a WHEN clause in a trigger is logged as DERBY-534. If you're interested in this issue, you could vote for it, or (better!) join the development community and contribute an implementation. https://issues.apache.org/jira/browse/DERBY-534 I think the other issues you raised (before update triggers, and triggers calling procedures) should work. I think that you may have to say "NO CASCADE" for a BEFORE trigger, and I think that you may have to say "CALL PROCEDURE", not just "CALL". Here's some good background information: http://db.apache.org/derby/docs/10.2/ref/rrefcreateprocedurestatement.html http://db.apache.org/derby/docs/10.2/ref/rrefcreateprocedurestatement.html http://db.apache.org/derby/docs/10.2/devguide/cdevspecial27163.html http://db.apache.org/derby/docs/10.2/devguide/cdevspecial42117.html If you still can't get them to work, try posting the transcript of the actual IJ session that you tried, with the exact statements you sent, and the errors that were returned. This should help people spot the problem and offer more precise suggestions. thanks, bryan