"No results were returned by the query" exception

From: "David Hancock" <hancockd(at)cs(dot)man(dot)ac(dot)uk>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: "No results were returned by the query" exception
Date: 2002-03-22 02:59:36
Message-ID: 000e01c1d14d$9a2a3970$fd9736d2@axolotl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2002-03-22 03:19:36 Re: "No results were returned by the query" exception
Previous Message Christian Cabanero 2002-03-22 01:58:58 SQLException error code update?