Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 83951 invoked from network); 14 May 2007 16:44:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 May 2007 16:44:19 -0000 Received: (qmail 41542 invoked by uid 500); 14 May 2007 16:43:47 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41494 invoked by uid 500); 14 May 2007 16:43:47 -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 41449 invoked by uid 99); 14 May 2007 16:43:46 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 May 2007 09:43:46 -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, 14 May 2007 09:43:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C9CF271406F for ; Mon, 14 May 2007 09:43:16 -0700 (PDT) Message-ID: <8105623.1179160996821.JavaMail.jira@brutus> Date: Mon, 14 May 2007 09:43:16 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-2425) ResultSetMetaData.getColumnDisplaySize() returns a negative value for BLOB columns for client In-Reply-To: <27347661.1173385704078.JavaMail.root@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-2425?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden closed DERBY-2425. --------------------------------- > ResultSetMetaData.getColumnDisplaySize() returns a negative value for BLOB columns for client > ---------------------------------------------------------------------------------------------- > > Key: DERBY-2425 > URL: https://issues.apache.org/jira/browse/DERBY-2425 > Project: Derby > Issue Type: Bug > Components: Network Client > Affects Versions: 10.3.0.0 > Reporter: Kathey Marsden > Assigned To: Mayuresh Nirhali > Priority: Minor > Fix For: 10.3.0.0 > > Attachments: derby2425.diff > > > Client getColumnDisplaySize on a BLOB(1G) column returns > -2147483648 > embedded returns 2147483647 > In client, the issue is that for binary values it multiplies the length * 2 and this overflows the int range. > return (int) (2 * sqlLength_[column - 1]); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.