Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45961 invoked from network); 27 Mar 2009 18:08:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Mar 2009 18:08:38 -0000 Received: (qmail 91382 invoked by uid 500); 27 Mar 2009 18:08:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 91353 invoked by uid 500); 27 Mar 2009 18:08:38 -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 91345 invoked by uid 99); 27 Mar 2009 18:08:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 18:08:38 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.133] (HELO sca-es-mail-2.sun.com) (192.18.43.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Mar 2009 18:08:28 +0000 Received: from fe-sfbay-09.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id n2RI86BL005914 for ; Fri, 27 Mar 2009 11:08:07 -0700 (PDT) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; format=flowed; charset=UTF-8 Received: from conversion-daemon.fe-sfbay-09.sun.com by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) id <0KH600600F2MAB00@fe-sfbay-09.sun.com> for derby-dev@db.apache.org; Fri, 27 Mar 2009 11:08:06 -0700 (PDT) Received: from richard-hillegas-computer.local ([unknown] [129.150.16.150]) by fe-sfbay-09.sun.com (Sun Java(tm) System Messaging Server 7.0-5.01 64bit (built Feb 19 2009)) with ESMTPSA id <0KH6002VAFOQH670@fe-sfbay-09.sun.com> for derby-dev@db.apache.org; Fri, 27 Mar 2009 11:07:44 -0700 (PDT) Date: Fri, 27 Mar 2009 11:07:38 -0700 From: Rick Hillegas Subject: Re: [jira] Updated: (DERBY-3991) Clob.truncate(0) throws exception In-reply-to: <18798464.1238175170510.JavaMail.jira@brutus> Sender: Richard.Hillegas@Sun.COM To: derby-dev@db.apache.org Message-id: <49CD15EA.1040601@sun.com> References: <18798464.1238175170510.JavaMail.jira@brutus> User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) X-Virus-Checked: Checked by ClamAV on apache.org Hi Yun, I have added you as a contributor to the Derby project. This should give you the permission you need. Here's a good primer on getting started as a Derby developer: http://db.apache.org/derby/derby_comm.html I don't think that Apache has an ICLA on file for you yet. The contributor checklist points you at the instructions for filing an ICLA so that Apache can accept your contributions: http://wiki.apache.org/db-derby/DerbyContributorChecklist Welcome to the Derby developer group! -Rick Yun Lee (JIRA) wrote: > [ https://issues.apache.org/jira/browse/DERBY-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] > > Yun Lee updated DERBY-3991: > --------------------------- > > Attachment: derby-3991-2a.diff > > Hi, all. I'm a prospective student for GSOC, Yun Lee. I have posted a patch for this issue, wish for your comments. > > At this moment, I'm in the user group, without the permission to assign this issue to myself. How to apply for the developer group, please? > > Thanks! > > >> Clob.truncate(0) throws exception >> --------------------------------- >> >> Key: DERBY-3991 >> URL: https://issues.apache.org/jira/browse/DERBY-3991 >> Project: Derby >> Issue Type: Bug >> Components: JDBC >> Affects Versions: 10.3.3.1, 10.4.2.1, 10.5.0.0 >> Reporter: Kristian Waagan >> Priority: Minor >> Attachments: derby-3991-1a-ClobTruncateZeroTest.diff, derby-3991-2a.diff >> >> >> Truncating a Clob to zero length is allowed according to the JDBC specification, which says the following about the len argument (in the @throws tag): >> "SQLException - if there is an error accessing the CLOB value or if len is less than 0 " >> Derby throws an exception if zero is passed to truncate. >> A quick inspection of the code suggests that truncating a Clob to the empty string is easy to support. >> > >