Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 99569 invoked from network); 13 Dec 2004 17:48:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 13 Dec 2004 17:48:04 -0000 Received: (qmail 80828 invoked by uid 500); 13 Dec 2004 17:48:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 80777 invoked by uid 500); 13 Dec 2004 17:48:01 -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: "Derby Development" Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 80746 invoked by uid 99); 13 Dec 2004 17:48:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from exchange.sun.com (HELO exchange.sun.com) (192.18.33.10) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 13 Dec 2004 09:47:57 -0800 Received: (qmail 6754 invoked from network); 13 Dec 2004 17:47:56 -0000 Received: from localhost (HELO nagoya) (127.0.0.1) by nagoya.betaversion.org with SMTP; 13 Dec 2004 17:47:56 -0000 Message-ID: <1230953040.1102960076021.JavaMail.apache@nagoya> Date: Mon, 13 Dec 2004 09:47:56 -0800 (PST) From: "Sunitha Kambhampati (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-102) can not insert more than 32270 charakters in long varchar, clob In-Reply-To: <1307341598.1102934216747.JavaMail.apache@nagoya> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N [ http://nagoya.apache.org/jira/browse/DERBY-102?page=comments#action_56591 ] Sunitha Kambhampati commented on DERBY-102: ------------------------------------------- --I believe these are the limits currently enforced :- VARCHAR maximum length 32 672 LONG VARCHAR maximum length 32 700 CLOB maximum length 2 147 483 647 BLOB maximum length 2 147 483 647 and hence the insert of 32800 chars into long varchar fails. So it seems these didnt make it into the documentation. The following page will need to reflect the correct limit: http://incubator.apache.org/derby/manuals/reference/sqlj137.html#IDX1005 Also lot of the limits live in org.apache.derby.iapi.reference.DB2Limit --I would think you should be able to insert into a clob. If you could post the test reproduction or SQLExceptions that you are getting for inserting a clob, along with traces in derby.log, that would be great. > can not insert more than 32270 charakters in long varchar, clob > --------------------------------------------------------------- > > Key: DERBY-102 > URL: http://nagoya.apache.org/jira/browse/DERBY-102 > Project: Derby > Type: Bug > Components: SQL > Versions: 10.0.2.1 > Environment: Windows XP/2000 > Reporter: rainer garbotz > Priority: Critical > > I have created an table with > create table egal ( > text long varchar > ); > Now I try to insert an 38000 charakters long String. > insert into egal values (' > ...... > '); > But there are following error message: > ERROR 54002: A string constant starting with '' > ddddddddddddddddddddddddddddddddddddddddddddddddddddddddd&' is too long. > I tryed the same with CLOB, but the same error occures. > The "Reference Manual" says to LONG VARCHAR: > "The LONG VARCHAR type allows storage of character strings of unlimited length" > Have I missunderstood this, or is this a BUG. > Thanks > Rainer -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://nagoya.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira