pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Andreas Percher <andreas.percher@automedia.de>
To: pgsql-jdbc@postgresql.org
Subject: Re: Columns out of range-error
Date: Fri, 20 Aug 2004 17:06:17 +0200
Message-ID: <000101c486c7$410b4cd0$1600a8c0@developer> (raw)
In-Reply-To: <1093012348.20381.4.camel@localhost.localdomain>

I'm a Newbe in using commitment control. 
Toby (Woolve73) is my Colleague.
So I try to refine his question.

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.

Step 2
Using pgAdmin anithing is fine.
Adding "begin" and "roolback" (we don't want to kill our live database)
- it works. Sending the inserts out of our Java-Application without
start/roolback works too.

Step 3
Now back in Java.
Sending a "begin" it gives us a SQL Error
"Spaltenindex außerhalb des gültigen Bereichs"
Which meens 
"The column index is out of range."

--> postgresql.res.colrange:Spaltenindex außerhalb des gültigen Bereichs

--> postgresql.res.colrange:The column index is out of range.

This error message occur after 13-16 inserts, depending on the column
count of each insert. Sending the inserts without the long data field
"specialequipment", results in letting the error occur one insert later.

In case of the Error, round about 600 columns (counted over all inserts)
are waiting for its commitment.

Step 4
We are confused.
We need to use commitment control, because if one insert, update or
delete fails, or if an error in the data input stream occurs, we have to
rollback.

> Toby,
> 
> 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 
> that supposed to work ?
> 
> Dave
> On Fri, 2004-08-20 at 10:20, Tobias Zielke wrote:
> > Hi,
> > 
> > We have a Problem with postgresql 7.4.3 and jdbc
> > ...
> > Thnx
> > Woolve73
> > Toby




view thread (9+ messages)  latest in thread

Message-ID: <000101c486c7$410b4cd0$1600a8c0@developer>
Permalink:  ../000101c486c7$410b4cd0$1600a8c0@developer/
Also on:    postgresql.org/message-id/000101c486c7$410b4cd0$1600a8c0@developer

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: andreas.percher@automedia.de
  Subject: Re: Columns out of range-error
  In-Reply-To: <000101c486c7$410b4cd0$1600a8c0@developer>
  References: <1093012348.20381.4.camel@localhost.localdomain> <000101c486c7$410b4cd0$1600a8c0@developer>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox