Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 72718 invoked from network); 26 Aug 2010 21:02:33 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 26 Aug 2010 21:02:33 -0000 Received: (qmail 20403 invoked by uid 500); 26 Aug 2010 21:02:33 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20134 invoked by uid 500); 26 Aug 2010 21:02:33 -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 20127 invoked by uid 99); 26 Aug 2010 21:02:32 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 21:02:32 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Aug 2010 21:02:15 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7QL1r11021826 for ; Thu, 26 Aug 2010 21:01:54 GMT Message-ID: <23153883.15541282856513907.JavaMail.jira@thor> Date: Thu, 26 Aug 2010 17:01:53 -0400 (EDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-3173) Removed cached String objects from SQLDate, SQLTime and SQLTimestamp In-Reply-To: <7472371.1194030470929.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-3173?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Knut Anders Hatlen resolved DERBY-3173. --------------------------------------- Fix Version/s: 10.7.0.0 Resolution: Fixed > Removed cached String objects from SQLDate, SQLTime and SQLTimestamp > -------------------------------------------------------------------- > > Key: DERBY-3173 > URL: https://issues.apache.org/jira/browse/DERBY-3173 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Daniel John Debrunner > Assignee: Eranda Sooriyabandara > Priority: Minor > Fix For: 10.7.0.0 > > Attachments: d3173.diff, Derby-3173.diff, Derby-3173.diff, Derby-3173.diff, sqldate.diff > > > These type classes save a copy of the value when it is converted to a String (e.g. through a ResultSet.getString()). This complicates the code & increases memory use for little value, in most cases the cached value will never be used. E.g. for any type of scan the String value will be discarded when moving to the next row. In most cases applications do not call getString() twice on a column. > The code has some historical basis in the fact that these types used to be represented by a java.sql.Time/Date/Timestamp object and its conversion to String was slow. Now the conversion of all these types to a String is simple. > In addition I think the getString() will sometimes return a non-normalized form, if the value is set by a non-standard format then the cached String is set to the non-standard format, not the standard format, I believe this is incorrect. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.