Re: DELETE ... RETURNING

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: DELETE ... RETURNING
Дата
Msg-id 4A5BAA29.9000004@opencloud.com
обсуждение исходный текст
Ответ на Re: DELETE ... RETURNING  (Thomas Kellerer <spam_eater@gmx.net>)
Ответы Re: DELETE ... RETURNING
Список pgsql-jdbc
Thomas Kellerer wrote:

> At least executeUpdate() should not throw an exception.

Wrong, see the javadoc:

>     Throws:
>         SQLException - if a database access error occurs or the SQL statement returns a ResultSet object

Your SQL statement is returning a ResultSet object, so executeUpdate
correctly throws an exception.

Use executeQuery() or execute().

-O

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: David Rees
Дата:
Сообщение: Re: Java long
Следующее
От: Thomas Kellerer
Дата:
Сообщение: Re: DELETE ... RETURNING