Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 87805 invoked from network); 16 Apr 2009 14:26:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Apr 2009 14:26:38 -0000 Received: (qmail 49005 invoked by uid 500); 16 Apr 2009 14:26:38 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 48963 invoked by uid 500); 16 Apr 2009 14:26:37 -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 48955 invoked by uid 99); 16 Apr 2009 14:26:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 14:26:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Apr 2009 14:26:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id F3936234C004 for ; Thu, 16 Apr 2009 07:26:14 -0700 (PDT) Message-ID: <750037565.1239891974927.JavaMail.jira@brutus> Date: Thu, 16 Apr 2009 07:26:14 -0700 (PDT) From: "Yun Lee (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3991) Clob.truncate(0) throws exception In-Reply-To: <19293666.1229345384746.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yun Lee updated DERBY-3991: --------------------------- Derby Info: [Release Note Needed] Derby Categories: [Deviation from standard, Newcomer] (was: [Newcomer]) I'm sorry to make some mistake in operating on the 'edit' option of the issue, now just restore it to the old state. > 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.1.0, 10.6.0.0 > Reporter: Kristian Waagan > Assignee: Yun Lee > Priority: Minor > Fix For: 10.6.0.0 > > Attachments: derby-3991-1a-ClobTruncateZeroTest.diff, derby-3991-2a.diff, derby-3991-3.diff, derby-3991-3.releaseNote.html, derby-3991-3.stat, releaseNote.html > > > 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. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.