Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 61917 invoked from network); 29 Mar 2007 21:18:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Mar 2007 21:18:47 -0000 Received: (qmail 77539 invoked by uid 500); 29 Mar 2007 21:18:53 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 77518 invoked by uid 500); 29 Mar 2007 21:18:53 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 77496 invoked by uid 99); 29 Mar 2007 21:18:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 14:18:53 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [199.89.234.134] (HELO gateway1.monsanto.com) (199.89.234.134) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 14:18:43 -0700 Received: from NA1000EXR02.na.ds.monsanto.com (na1000exr02.na.ds.monsanto.com [10.30.52.46]) by gateway1.monsanto.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id l2TLI9wx025069 for ; Thu, 29 Mar 2007 16:18:19 -0500 (CDT) Received: from NA1000EXR01.na.ds.monsanto.com ([10.30.52.45]) by NA1000EXR02.na.ds.monsanto.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Mar 2007 16:18:05 -0500 Received: from NA1000EXR04.na.ds.monsanto.com ([10.30.64.102]) by NA1000EXR01.na.ds.monsanto.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Mar 2007 16:18:04 -0500 Received: from NA1000EXM01.na.ds.monsanto.com ([10.30.52.47]) by NA1000EXR04.na.ds.monsanto.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 29 Mar 2007 16:18:04 -0500 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2826 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Alter Table ADD Column throws column number exception Date: Thu, 29 Mar 2007 16:18:04 -0500 Message-ID: <2526D42D65F597428BFF422D6AB79E9E0108FD32@NA1000EXM01.na.ds.monsanto.com> In-Reply-To: <9f40b500703290908r74adad48v9d1e5b4817cebc7@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Alter Table ADD Column throws column number exception Importance: normal Priority: normal Thread-Index: AcdyHKCHE0bKcuAnTJCO5RRJ7gCX+QAKqgnw From: "BALDWIN, ALAN J [AG-Contractor/1000]" To: "Derby Discussion" X-OriginalArrivalTime: 29 Mar 2007 21:18:04.0787 (UTC) FILETIME=[BD522430:01C77247] X-Virus-Checked: Checked by ClamAV on apache.org Hello all, When I execute the following SQL statement: ALTER TABLE OrderDetail=20 ADD COLUMN blah=20 varchar(15) I get this exception: java.sql.SQLException: In a base table there was a mismatch between the requested column number 16 and the maximum number of columns 20. Does anyone have an idea how I can fix this, or at least find a workaround? Thanks, -Alan- -------------------------------------------------------------------------= -------------------------------- This e-mail message may contain privileged and/or confidential = information, and is intended to be received only by persons entitled to = receive such information. If you have received this e-mail in error, = please notify the sender immediately. Please delete it and all = attachments from any servers, hard drives or any other media. Other use = of this e-mail by you is strictly prohibited. All e-mails and attachments sent and received are subject to monitoring, = reading and archival by Monsanto. The recipient of this e-mail is solely = responsible for checking for the presence of "Viruses" or other = "Malware". Monsanto accepts no liability for any damage caused by any = such code transmitted by or accompanying this e-mail or any attachment. -------------------------------------------------------------------------= --------------------------------