X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id E17595E46CA for ; Fri, 20 Aug 2004 12:20:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 54858-06 for ; Fri, 20 Aug 2004 15:20:17 +0000 (GMT) Received: from stefan7.han-solo.net (stefan7.han-solo.net [161.58.219.97]) by svr1.postgresql.org (Postfix) with ESMTP id CF0715E46C8 for ; Fri, 20 Aug 2004 12:20:09 -0300 (ADT) Received: from developer ([195.227.76.210]) by stefan7.han-solo.net (8.12.11) id i7KFKCjq013827; Fri, 20 Aug 2004 09:20:13 -0600 (MDT) Reply-To: From: "Andreas Percher" To: Cc: , Subject: Re: Columns out of range-error Date: Fri, 20 Aug 2004 17:20:16 +0200 Organization: automedia GmbH Message-ID: <000601c486c9$33972b30$1600a8c0@developer> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 Importance: Normal In-Reply-To: <1093014909.20381.10.camel@localhost.localdomain> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/121 X-Sequence-Number: 10843 > First of all, do not use begin, use setAutoCommit(false); Silly question: Where ? How ? I don't get any acces to the postgresDB, only the JDBC-Conection. > I still need to see the loop that you are inserting the data in? This is what Woolve73 will send to you, i guess. Dave On Fri, 2004-08-20 at 11:05, (AnPe) Andreas Percher wrote: > I'm a Newbe in using commitment control. > Toby (Woolve73) is my Colleague. > So I try to refine his question. >=20 > Step 1 > We've got a Table with 203 columns. > We wan't to add (insert) up to 150 new rows. > Each row need 38-52 columns. >=20 > Step 2 > Using pgAdmin anithing is fine. > Adding "begin" and "roolback" (we don't want to kill our live=20 > database) > - it works. > Sending the inserts out of our Java-Application without start/roolback > works too. >=20 > Step 3 > Now back in Java. > Sending a "begin" it gives us a SQL Error > "Spaltenindex au=DFerhalb des g=FCltigen Bereichs" > Which meens > "The column index is out of range." >=20 > --> postgresql.res.colrange:Spaltenindex au=DFerhalb des g=FCltigen=20 > --> Bereichs postgresql.res.colrange:The column index is out of range. >=20 > This error message occur after 13-16 inserts, depending on the column=20 > count of each insert. Sending the inserts without the long data field=20 > "specialequipment", results in letting the error occur one insert=20 > later. >=20 > In case of the Error, round about 600 columns (counted over all=20 > inserts) are waiting for its commitment. >=20 > Step 4 > We are confused. > We need to use commitment control, because if one insert, update or=20 > delete fails, or if an error in the data input stream occurs, we have=20 > to rollback. >=20 > > Toby, > >=20 > > You will have to give us more information. > > can you show us the relevant code ? > > But in general you can't put 650 columns into 200 columns ? How is=20 > > that supposed to work ? > >=20 > > Dave > > On Fri, 2004-08-20 at 10:20, Tobias Zielke wrote: > > > Hi, > > >=20 > > > We have a Problem with postgresql 7.4.3 and jdbc > > > ... > > > Thnx > > > Woolve73 > > > Toby