Re:

From: Patrice Le Gurun <patrice(at)felixfr(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re:
Date: 2002-11-05 07:18:16
Message-ID: 3DC770B8.7050907@felixfr.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Karl Goldstein wrote:

>Hello,
>
>I am having a problem with queries that return empty result sets. Whenever
>I execute a query that returns no rows, the driver throws a SQLException:
>
>No results were returned by the query.
> at
>org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statem
>ent.java:157)
> at
>org.postgresql.jdbc1.AbstractJdbc1Statement.executeQuery(AbstractJdbc1Statem
>ent.java:141)
>
>
I had the same problem a few weeks ago. It was a request which throw an
error into a transaction. The requests after the failing query return
"no results were returned by the query". The problem was solved by catch
the SQLException thrown and by sending a rollback in the catch block.

Maybe my experience can help you ...

--
Patrice Le Gurun
Développeur chez Félix Informatique
mailto:patrice(at)felixfr(dot)com

In response to

  • at 2002-11-04 17:05:52 from Karl Goldstein

Responses

  • Re: at 2002-11-05 16:14:52 from Karl Goldstein

Browse pgsql-jdbc by date

  From Date Subject
Next Message Karl Goldstein 2002-11-05 16:14:52 Re:
Previous Message M. A. Sridhar 2002-11-05 02:01:21 Connection closed?