"No results were returned by the query" exception - Mailing list pgsql-jdbc

From David Hancock
Subject "No results were returned by the query" exception
Date
Msg-id 000e01c1d14d$9a2a3970$fd9736d2@axolotl
Whole thread Raw
Responses Re: "No results were returned by the query" exception
List pgsql-jdbc
Hi,

Someone recently pointed out that a SQLException is thrown when a query
returns no results. I have noticed this too. It used to be the case
(driver version 6.x) that an empty ResultSet was returned, and no
exception thrown.

This new behaviour means that the Postgres driver behaves significantly
differently to other JDBC drivers, and that code written for a generic
JDBC connection doesn't work as expected with Postgres.

Is this new behaviour a bug or a feature ?

regards,

Dave Hancock.







pgsql-jdbc by date:

Previous
From: "Christian Cabanero"
Date:
Subject: SQLException error code update?
Next
From: "Dave Cramer"
Date:
Subject: Re: "No results were returned by the query" exception