Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 11851 invoked from network); 31 Mar 2005 07:08:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 31 Mar 2005 07:08:18 -0000 Received: (qmail 25483 invoked by uid 500); 31 Mar 2005 07:08:17 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 25451 invoked by uid 500); 31 Mar 2005 07:08:17 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 25437 invoked by uid 99); 31 Mar 2005 07:08:16 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of msatoor@gmail.com designates 64.233.184.203 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.203) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 30 Mar 2005 23:08:15 -0800 Received: by wproxy.gmail.com with SMTP id 58so446287wri for ; Wed, 30 Mar 2005 23:08:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=oJrR84sTKU2KO6+mVoXlrt5jt0Uu3j+pYtfCknv32Liv58vEnc8Qz+wVyDQNfby7FE0Z2DFXf8QCSXh/pv8DyADV42OvbKx/+5y17yOLK0WtExASvmLpLBjEGXqQAuZmTgrnSLOieeScFypw8jMg+5Pwi1csIO0Mr/CcJSuyRKA= Received: by 10.54.103.15 with SMTP id a15mr777126wrc; Wed, 30 Mar 2005 23:08:13 -0800 (PST) Received: by 10.54.49.63 with HTTP; Wed, 30 Mar 2005 23:08:13 -0800 (PST) Message-ID: Date: Wed, 30 Mar 2005 23:08:13 -0800 From: Mamta Satoor Reply-To: Mamta Satoor To: Derby Development Subject: Re: [jira] Created: (DERBY-63) updateNull doesnot work with Embedded Driver In-Reply-To: <1005634301.1100070203838.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit References: <1005634301.1100070203838.JavaMail.apache@nagoya> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Tue, 9 Nov 2004 23:03:23 -0800 (PST), Shreyas (JIRA) wrote: > updateNull doesnot work with Embedded Driver > -------------------------------------------- > > Key: DERBY-63 > URL: http://nagoya.apache.org/jira/browse/DERBY-63 > Project: Derby > Type: Bug > Components: JDBC > Environment: Run from a Java Program will appear across platfroms using the embedded driver > Reporter: Shreyas > Priority: Minor > > The Embedded Driver for Derby still does not implement the updateNull method defined in the interface java.sql.ResultSet. > > Attaching a Repro and the stack trace for the same > > ----------------------------------------------------- > Reproducible Program > ----------------------------------------------------- > import java.sql.*; > > public class updateNull{ > > public static void main(String [] args) { > > String strUrl = "jdbc:derby:;databaseName=testdb;create=true"; > try { > Class.forName("org.apache.derby.jdbc.EmbeddedDriver"); > Connection con = DriverManager.getConnection(strUrl); > > Statement stmt = con.createStatement(); > try { > stmt.executeUpdate("drop table test"); > } catch(SQLException ex) { > // Do nothing. > } > con.commit(); > > Statement stmt1 = con.createStatement(); > stmt1.executeUpdate("create table test(i_val integer, s_val varchar(10))"); > stmt1.executeUpdate("insert into test values(1,'shreyas')"); > con.commit(); > > Statement stmt2 = con.createStatement(); > ResultSet rs = stmt2.executeQuery("select * from test"); > rs.next(); > rs.updateNull(2); > rs.updateRow(); > > } catch(ClassNotFoundException cnfe) { > System.out.println("Class not found: "+cnfe.getMessage()); > } catch(SQLException sqle) { > System.out.println("SQL:Caught: "+sqle.getMessage()); > sqle.printStackTrace(); > } catch(Exception e) { > > } > > } > } > > ---------------------Reproducible Ends---------------------------------- > > ------------------------------------ > Stack Trace of the output > ------------------------------------ > SQL:Caught: Feature not implemented: no details. > SQL Exception: Feature not implemented: no details. > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java) > at org.apache.derby.impl.jdbc.Util.newEmbedSQLException(Util.java) > at org.apache.derby.impl.jdbc.Util.notImplemented(Util.java) > at org.apache.derby.impl.jdbc.EmbedResultSet20.updateNull(EmbedResultSet20.java) > at updateNull.main(updateNull.java:28) > -----------------------Stack Trace Ends------------------------------------------------- > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: > http://nagoya.apache.org/jira/secure/Administrators.jspa > - > If you want more information on JIRA, or have a bug to report see: > http://www.atlassian.com/software/jira > > Hi Shreyas, I have checked in support for update using updatable resultset apis on forward only updatable resultsets. Can you please test your code again and close the bug if everything works fine? thanks, Mamta