Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 78301 invoked from network); 6 Jun 2006 09:00:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 09:00:32 -0000 Received: (qmail 50800 invoked by uid 500); 6 Jun 2006 09:00:31 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 50764 invoked by uid 500); 6 Jun 2006 09:00:31 -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 50755 invoked by uid 99); 6 Jun 2006 09:00:31 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 02:00:31 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 02:00:30 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9D9697142A1 for ; Tue, 6 Jun 2006 08:59:30 +0000 (GMT) Message-ID: <21961399.1149584370642.JavaMail.jira@brutus> Date: Tue, 6 Jun 2006 08:59:30 +0000 (GMT+00:00) From: "Fernanda Pizzorno (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-1356) Positioned update/delete when positioned after last or before first causes NullPointerException In-Reply-To: <4680925.1148987429949.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1356?page=all ] Fernanda Pizzorno closed DERBY-1356: ------------------------------------ > Positioned update/delete when positioned after last or before first causes NullPointerException > ----------------------------------------------------------------------------------------------- > > Key: DERBY-1356 > URL: http://issues.apache.org/jira/browse/DERBY-1356 > Project: Derby > Type: Bug > Components: JDBC > Versions: 10.2.0.0 > Reporter: Fernanda Pizzorno > Assignee: Fernanda Pizzorno > Priority: Minor > Fix For: 10.2.0.0 > Attachments: derby-1356.diff, derby-1356.stat > > ij version 10.2 > ij> connect 'jdbc:derby:SURTest;create=true'; > ij> autocommit off; > ij> create table t1 (c1 int primary key, c2 int); > 0 rows inserted/updated/deleted > ij> insert into t1 values (1, 1), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6), (7, 7), (8, 8), (9, 9), (10, 10); > 10 rows inserted/updated/deleted > ij> get scroll insensitive cursor sc1 as 'SELECT * FROM t1 FOR UPDATE'; > ij> after last sc1; > No current row > ij> update t1 set c2 = c1 + 20 where current of sc1; > ERROR XJ001: Java exception: ': java.lang.NullPointerException'. > ij> before first sc1; > No current row > ij> update t1 set c2 = c1 + 20 where current of sc1; > ERROR XJ001: Java exception: ': java.lang.NullPointerException'. > ij> after last sc1; > No current row > ij> delete from t1 where current of sc1; > ERROR XJ001: Java exception: ': java.lang.NullPointerException'. > ij> before first sc1; > No current row > ij> delete from t1 where current of sc1; > ERROR XJ001: Java exception: ': java.lang.NullPointerException'. > ij> close sc1; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira