Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 90316 invoked from network); 20 Feb 2009 08:33:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2009 08:33:24 -0000 Received: (qmail 86768 invoked by uid 500); 20 Feb 2009 08:33:23 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 86728 invoked by uid 500); 20 Feb 2009 08:33:23 -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 86709 invoked by uid 99); 20 Feb 2009 08:33:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Feb 2009 00:33:22 -0800 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; Fri, 20 Feb 2009 08:33:22 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E1705234C498 for ; Fri, 20 Feb 2009 00:33:01 -0800 (PST) Message-ID: <1480808131.1235118781922.JavaMail.jira@brutus> Date: Fri, 20 Feb 2009 00:33:01 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-4040) SQLChar.getLength returns wrong length for some data values In-Reply-To: <1032912906.1233317159688.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 [ https://issues.apache.org/jira/browse/DERBY-4040?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan closed DERBY-4040. ---------------------------------- 10.3 tinderbox ran without any new failures (lang/subquery did fail). Closing issue. > SQLChar.getLength returns wrong length for some data values > ----------------------------------------------------------- > > Key: DERBY-4040 > URL: https://issues.apache.org/jira/browse/DERBY-4040 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.3.3.1, 10.4.2.0, 10.5.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Fix For: 10.3.3.1, 10.4.2.1, 10.5.0.0 > > Attachments: derby-4040-1a-SQLChar_length_and_test.diff, derby-4040-1a-SQLChar_length_and_test.stat, derby-4040-2a-backport.diff > > > SQLChar.getLength() returns the wrong length of the data value in some cases. > For the bug to be triggered, the value must contain characters that are represented by two or three bytes, and Derby must store the value as a stream. > In my ad-hoc testing, I found that a value of length 10886 with CJK characters doesn't trigger the bug, but 10887 does trigger the bug. Further, for a range of lengths the bug can also been observed for CLOB columns (when doing 'select length(clobcolumn)'). -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.