Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 47664 invoked from network); 5 Jun 2007 06:40:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jun 2007 06:40:47 -0000 Received: (qmail 99968 invoked by uid 500); 5 Jun 2007 06:40:50 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 99937 invoked by uid 500); 5 Jun 2007 06:40:50 -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 99928 invoked by uid 99); 5 Jun 2007 06:40:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 23:40:50 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Jun 2007 23:40:46 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E7EE2714045 for ; Mon, 4 Jun 2007 23:40:25 -0700 (PDT) Message-ID: <702334.1181025625923.JavaMail.jira@brutus> Date: Mon, 4 Jun 2007 23:40:25 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2694) org.apache.derby.impl.drda.DDMWriter uses wrong algorithm to avoid spliting varchar in the middle of a multibyte char. In-Reply-To: <20696144.1180092076127.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-2694?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen updated DERBY-2694: -------------------------------------- Attachment: unused.diff I noticed that the local variable multiByteTrunc is no longer used and can be removed. The attached patch removes it and a couple of unused imports in DDMWriter. Committed revision 544407. > org.apache.derby.impl.drda.DDMWriter uses wrong algorithm to avoid spliting varchar in the middle of a multibyte char. > ---------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-2694 > URL: https://issues.apache.org/jira/browse/DERBY-2694 > Project: Derby > Issue Type: Bug > Components: Network Server > Environment: all > Reporter: Anurag Shekhar > Assignee: Anurag Shekhar > Fix For: 10.3.0.0 > > Attachments: derby-2694-v2.diff, derby-2694-v3.diff, derby-2694-v3.diff, derby-2694.diff, TestProc.java, TestProc_TruncateRep.java, unused.diff > > > org.apache.derby.impl.drda.DDMWriter uses wrong algorithm to avoid splitting varchar in the middle of a multibyte char. > When DMWriter finds that it has to split a varchar while sending it to client it checks if the last byte is a part of a multibyte char and in case it is it tries to find the last byte of previous char and sends only till that byte leaving rest of it for the next send. > The code it uses is having a bug so it fails when the last byte its checking for is the third byte of a char of 3 byte length. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.