Return-Path: X-Original-To: apmail-db-derby-dev-archive@www.apache.org Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 707A14BF3 for ; Tue, 17 May 2011 14:21:29 +0000 (UTC) Received: (qmail 62083 invoked by uid 500); 17 May 2011 14:21:28 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 62049 invoked by uid 500); 17 May 2011 14:21:28 -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 62012 invoked by uid 99); 17 May 2011 14:21:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 14:21:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 May 2011 14:21:26 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 925DECD85E for ; Tue, 17 May 2011 14:20:47 +0000 (UTC) Date: Tue, 17 May 2011 14:20:47 +0000 (UTC) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Message-ID: <1685103082.19166.1305642047596.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1609503226.19075.1305639407502.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (DERBY-5235) Remove the artificial limit on the length of VARCHAR values, allowing them to be java.lang.Integer.MAX_VALUE long MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-5235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13034779#comment-13034779 ] Rick Hillegas commented on DERBY-5235: -------------------------------------- Thanks for the quick comments, Knut. Cloudscape was able to index VARCHAR columns. The Cloudscape limitation was that an index key could not be longer than half the page size of the index. There was a compile-time check for CREATE INDEX and a run-time check for INSERT/UPDATE. We would want to make sure that indexes don't break if you lengthen a VARCHAR column using ALTER TABLE ALTER COLUMN. Don't remember if there were failures when a sort spilled to disk for an ORDER BY on a beefy VARCHAR. These limitations need to be tested and the behavior documented as part of picking up this issue. I agree that if we lift this limit on the length of VARCHAR, then it will look pretty silly when LONG VARCHAR is shorter than VARCHAR. Thanks. > Remove the artificial limit on the length of VARCHAR values, allowing them to be java.lang.Integer.MAX_VALUE long > ----------------------------------------------------------------------------------------------------------------- > > Key: DERBY-5235 > URL: https://issues.apache.org/jira/browse/DERBY-5235 > Project: Derby > Issue Type: Improvement > Components: SQL > Affects Versions: 10.9.0.0 > Reporter: Rick Hillegas > > The original Cloudscape limit for the length of VARCHAR values was java.lang.Integer.MAX_VALUE. That is the limit in Cloudscape 5.1. Nothing in Derby should break if we restore the original limit. The current limit is an artificial bound introduced to make Derby agree with DB2. 32672 is the upper bound on the length of a DB2 VARCHAR: http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0001029.htm -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira