Re: The column index is out of range in PostgreSQL + resolve

From: Kris Jurka <books(at)ejurka(dot)com>
To: Murali Doss <Murali(dot)Doss(at)mphasis(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: The column index is out of range in PostgreSQL + resolve
Date: 2006-08-04 17:25:00
Message-ID: Pine.BSO.4.63.0608041223280.21278@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 31 Jul 2006, Murali Doss wrote:

>
> SQL Query is running perfect from PG Admin but it gives error "The
> column index is out of range " when running through java
> application.Please advise me how to solve this issue.

This error message has nothing to do with the query execution, but rather
the fetching of results from the ResultSet. I imagine you are using one
of the ResultSet.getXXX() methods using an improper column index.

Kris Jurka

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kris Jurka 2006-08-04 17:31:00 Re: BUG #2559: why jdbc-driver AbstractJdbc2ResultSetMetaData.
Previous Message Stephan Szabo 2006-08-04 16:19:01 Re: referential integrity violation - key referenced from