Re: Statement.executeQuery() and no results - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Statement.executeQuery() and no results
Date
Msg-id Pine.LNX.4.33.0307222253260.6056-100000@leary.csoft.net
Whole thread Raw
In response to Statement.executeQuery() and no results  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
List pgsql-jdbc

On 22 Jul 2003, Sailesh Krishnamurthy wrote:

>
> Folks
>
> When we run a query that produces no results, executeQuery() returns
> an exception instead of a ResultSet object for which the first call to
> next() returns false. (This is with a driver for pgsql 7.3.2)
>

This code will throw an exception if you try calling executeQuery with a
non-select statement.  For example an UPDATE.  If you are getting
unexpected exceptions please post a test case here.

Kris Jurka


pgsql-jdbc by date:

Previous
From: Sailesh Krishnamurthy
Date:
Subject: Statement.executeQuery() and no results
Next
From: Kris Jurka
Date:
Subject: Re: the IN clause saga