pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Craig Ringer <ringerc@ringerc.id.au>
To: pgsql-jdbc@postgresql.org
Subject: Re: JVM & JDBC Upgrade --- Help !!
Date: Thu, 22 Sep 2011 12:25:48 +0800
Message-ID: <4E7AB8CC.2000600@ringerc.id.au> (raw)
In-Reply-To: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com>
References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com>

On 09/22/2011 06:53 AM, Craig Golby wrote:
>
> Code Snippet ...
>
>     if(conn != null)
>
>     { try
>
>       { pStmt = conn.prepareStatement(stmtStringSel);
>
>         pStmt.clearParameters();
>
>         rsID = pStmt.executeQuery();
>
>         //Set up the Array
>
>         ResultSetMetaData rsmd = rsID.getMetaData();
>
>         int columnCount = rsmd.getColumnCount();
>
>         int rowCount = 7;
>
>         rsOpened = new String[rowCount][columnCount];
>
>         int r=0;
>
>         while(rsID.next())
>
>         { int c=0;
>
>           int rsc=1;
>
>           while (rsc <= columnCount)
>
>           { rsOpened[r][c] = rsID.getString(rsc);
>

Is the above line where the exception is thrown from? You didn't provide 
full exception context.

If so, check and make sure the column count reported by `getColumnCount' 
matches what you expect and what the old driver provided. Compare it to 
the table. Compare the column-list metadata output from the old and new 
drivers to see which column(s) have appeared/disappeared.

--
Craig Ringer

view thread (6+ messages)  latest in thread

Message-ID: <4E7AB8CC.2000600@ringerc.id.au>
Permalink:  ../4E7AB8CC.2000600@ringerc.id.au/
Also on:    postgresql.org/message-id/4E7AB8CC.2000600@ringerc.id.au

 · 

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: ringerc@ringerc.id.au
  Subject: Re: JVM & JDBC Upgrade --- Help !!
  In-Reply-To: <4E7AB8CC.2000600@ringerc.id.au>
  References: <4e7a9257.0443960a.7ee0.ffffc7c4SMTPIN_ADDED@mx.google.com> <4E7AB8CC.2000600@ringerc.id.au>

* 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