Re: Statement.executeQuery() and no results

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Statement.executeQuery() and no results
Дата
Msg-id Pine.LNX.4.33.0307222253260.6056-100000@leary.csoft.net
обсуждение исходный текст
Ответ на Statement.executeQuery() and no results  (Sailesh Krishnamurthy <sailesh@cs.berkeley.edu>)
Список 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 по дате отправления:

Предыдущее
От: Sailesh Krishnamurthy
Дата:
Сообщение: Statement.executeQuery() and no results
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: the IN clause saga