Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 43454 invoked from network); 5 May 2009 16:37:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 May 2009 16:37:28 -0000 Received: (qmail 93107 invoked by uid 500); 5 May 2009 16:36:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 93078 invoked by uid 500); 5 May 2009 16:36:54 -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 93051 invoked by uid 99); 5 May 2009 16:36:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 May 2009 16:36:54 +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; Tue, 05 May 2009 16:36:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6A3D1234C04C for ; Tue, 5 May 2009 09:36:31 -0700 (PDT) Message-ID: <1418860125.1241541391434.JavaMail.jira@brutus> Date: Tue, 5 May 2009 09:36:31 -0700 (PDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-4214) Inconsistent metadata for CLOBGETSUBSTRING, depending on your upgrade trajectory 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 Inconsistent metadata for CLOBGETSUBSTRING, depending on your upgrade trajectory -------------------------------------------------------------------------------- Key: DERBY-4214 URL: https://issues.apache.org/jira/browse/DERBY-4214 Project: Derby Issue Type: Bug Components: SQL Affects Versions: 10.4.3.0, 10.5.1.1, 10.5.1.2, 10.6.0.0 Reporter: Rick Hillegas The on-disk signature of CLOBGETSUBSTRING changed as a result of the work done on DERBY-3769. Previously, the return type of that function was VARCHAR(32672). The return type changed to VARCHAR(10890) with revision 707097, which made it into release 10.5.1.1. That change was also backported to the 10.4 branch at 711548. However, no upgrade logic was written to support this metadata change. As a result, we have two discrepancies with our upgrade policy: 1) If you upgrade a database to 10.5.1.1, the signature of CLOBGETSUBSTRING will not be the signature which you would see in a freshly created 10.5.1.1 database. Presumably this means that the problem addressed by DERBY-3769 is not solved in upgraded databases. 2) If we create another release on the 10.4 branch, then we will have a change in on-disk metadata introduced by a bug-fix release. I see two solutions: A) Add metadata upgrade logic to the 10.4 and 10.5 branches so that DERBY-3769 will be fixed in upgraded databases as well as freshly created databases. This will violate our policy of not changing on-disk metadata in maintenance releases. B) Correct the metadata in the hard-upgrade logic of 10.6. We may want to revert the 10.4 backport. In any event, we may also want to re-open DERBY-3769 to indicate that the bug is not fixed in hard-upgraded databases but only in freshly created databases. What are people's thoughts about how to address this discrepancy? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.