Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 2048 invoked from network); 26 Jul 2008 13:43:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jul 2008 13:43:55 -0000 Received: (qmail 76336 invoked by uid 500); 26 Jul 2008 13:43:53 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 76089 invoked by uid 500); 26 Jul 2008 13:43:52 -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 75979 invoked by uid 99); 26 Jul 2008 13:43:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Jul 2008 06:43:52 -0700 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; Sat, 26 Jul 2008 13:43:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6471234C18E for ; Sat, 26 Jul 2008 06:43:31 -0700 (PDT) Message-ID: <1198225530.1217079811876.JavaMail.jira@brutus> Date: Sat, 26 Jul 2008 06:43:31 -0700 (PDT) From: "Myrna van Lunteren (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-961) Error 22001 can include 'XX-RESOLVE-XX' which should be removed In-Reply-To: <1659473103.1139823522806.JavaMail.jira@ajax.apache.org> 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-961?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Myrna van Lunteren closed DERBY-961. ------------------------------------ > Error 22001 can include 'XX-RESOLVE-XX' which should be removed > --------------------------------------------------------------- > > Key: DERBY-961 > URL: https://issues.apache.org/jira/browse/DERBY-961 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.1.6 > Reporter: Myrna van Lunteren > Assignee: Bryan Pendleton > Priority: Minor > Fix For: 10.5.0.0 > > Attachments: msgChangeWithTest.diff, tweakMsg.diff > > > In some cases, error 22001 can come up as follows: > A truncation error was encountered trying to shrink CHAR () FOR BIT DATA 'XX-RESOLVE-XX' to length 40. > This message makes it appear as if there is a column called XX-RESOLVE-XX, however, this string is coming out of SQLBinary.java. > It should be removed from the message. > Other references for this string are in the masters for updatableResultSet.out, and in the test lang/concateTests.java (referring to DERBY-124). > So, running updatableResultSet will generate the message. > > The stack trace I saw: > at org.apache.derby.iapi.error.StandardException.newException(StandardException.java:362) > at org.apache.derby.iapi.types.SQLBinary.checkHostVariable(SQLBinary.java:977) > at org.apache.derby.exe.ac05550069x0109x5d95xbdfcxffff9c80fb80163.e0 (Unknown Source) > at org.apache.derby.impl.services.reflect.DirectCall.invoke(ReflectGeneratedClass.java:138) > at org.apache.derby.impl.sql.execute.RowResultSet.getNextRowCore(RowResultSet.java:155) > at org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore (NormalizeResultSet.java:204) > at org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(DMLWriteResultSet.java:123) > at org.apache.derby.impl.sql.execute.InsertResultSet.open(InsertResultSet.java:521) > at org.apache.derby.impl.sql.GenericPreparedStatement.execute(GenericPreparedStatement.java:359) > at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(EmbedStatement.java:1142) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(EmbedPreparedStatement.java:1421) > at org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(EmbedPreparedStatement.java:263) > -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.