Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 62041 invoked from network); 10 Jun 2008 18:20:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jun 2008 18:20:23 -0000 Received: (qmail 37525 invoked by uid 500); 10 Jun 2008 18:20:23 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 37486 invoked by uid 500); 10 Jun 2008 18:20:23 -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 37401 invoked by uid 99); 10 Jun 2008 18:20:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 11:20:22 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=SPF_PASS,UPPERCASE_50_75 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of msatoor@gmail.com designates 209.85.198.239 as permitted sender) Received: from [209.85.198.239] (HELO rv-out-0506.google.com) (209.85.198.239) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 10 Jun 2008 18:19:33 +0000 Received: by rv-out-0506.google.com with SMTP id f6so2607777rvb.55 for ; Tue, 10 Jun 2008 11:19:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=Ek6DrJ3StAzpkWXnIFErq+E5getwCYM83FBqyzfiVaY=; b=Tl/6D6zTXY9LPd0XiNlNO6WEQoJ5nvcPeviLrGtJUNuLgz7jtESKh1SgYJ58cicL3C WyumEV7d1DvCjIrZfsA8cV6eff8FqNpwjpovHN7sL25I8HSosJn7IrTEtIywzjWj/Zpx EW4nSB5dFydqt+A8YxbmAl+/EQxjFcNoLFlZM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Bky/tltS94IaVtVsTXeeqYcZx5F6LMCwuhMbufa1x+bZOb/ba+hf4jl2PHZZCpCh5z gZ1EKsuTmAYW467xy2VXT5xdOqepoxTztbxmKL2T2yStMJ8sxraNo9spxRr1wIrtOWEq eUC740VmL4RAbVE6h3xRRRrZpyO6u1achNfRY= Received: by 10.140.157.4 with SMTP id f4mr3299967rve.1.1213121990566; Tue, 10 Jun 2008 11:19:50 -0700 (PDT) Received: by 10.141.26.11 with HTTP; Tue, 10 Jun 2008 11:19:50 -0700 (PDT) Message-ID: Date: Tue, 10 Jun 2008 11:19:50 -0700 From: "Mamta Satoor" To: "Derby Discussion" Subject: Re: Trigger function broken in 10.4.1.3? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org Thiyagu, can you post the null pointer exception trace that you get? Mamta On 6/10/08, Thiyagu P wrote: > Hi, > > Getting null pointer exception when a trigger gets invoked. > > Steps to recreate : > 1. Created new db and execute the following stmts > 2. CREATE TABLE TRADE( > ID INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (START WITH 1000), > BUYID INT NOT NULL, > QTY FLOAT(2) NOT NULL > ); > > CREATE TABLE TOTAL(BUYID INT NOT NULL, TOTALQTY FLOAT(2) NOT NULL); > > CREATE TRIGGER TRADE_INSERT > AFTER INSERT ON TRADE > REFERENCING NEW AS NEWROW > FOR EACH ROW MODE DB2SQL > UPDATE TOTAL SET TOTALQTY = NEWROW.QTY WHERE BUYID = NEWROW.BUYID; > > INSERT INTO TOTAL VALUES (1, 0); > > INSERT INTO TRADE VALUES(1, 1, 1, 10); > > Same thing work fine in 10.3.3.0. > > > Thanks, > Thiyagu > > > >