From: Oliver Jowett <oliver@opencloud.com>
To: Manuel Sugawara <masm@fciencias.unam.mx>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Result set not positioned properly, perhaps you need to
Date: Fri, 26 Nov 2004 12:17:03 +1300
Message-ID: <41A667EF.7010406@opencloud.com> (raw)
In-Reply-To: <m3brdlzh1w.fsf@conexa.fciencias.unam.mx>
References: <m3brdlzh1w.fsf@conexa.fciencias.unam.mx>
Manuel Sugawara wrote:
> I have a system which have been up for years now and recently when
> switched to pg74.215.jdbc3.jar it started to fail saying:
>
> org.postgresql.util.PSQLException: Result set not positioned properly, perhaps you need to call next().
> at org.postgresql.jdbc1.AbstractJdbc1ResultSet.checkResultSet(AbstractJdbc1ResultSet.java:823)
> at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:200)
> at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getString(AbstractJdbc1ResultSet.java:480)
> at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:155)
> ....
>
> The funny thing is that switching back to pg74.214.jdbc3.jar solves
> the problem. Is this a know bug?.
Can you show us the application code that causes this? It may be an
application bug that was hidden by the old driver's behaviour. Newer
drivers tend to be more aggressive about checking resultset positioning,
enforcing spec requirements, etc.
-O
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: oliver@opencloud.com, masm@fciencias.unam.mx
Subject: Re: Result set not positioned properly, perhaps you need to
In-Reply-To: <41A667EF.7010406@opencloud.com>
References: <m3brdlzh1w.fsf@conexa.fciencias.unam.mx> <41A667EF.7010406@opencloud.com>
* 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