Re: DELETE ... RETURNING

Поиск
Список
Период
Сортировка
Искать
От
Oliver Jowett
Тема
Re: DELETE ... RETURNING
Дата
Msg-id
4A5BAA29.9000004@opencloud.com
Ответ на
Re: DELETE ... RETURNING (Thomas Kellerer)
Список
Дерево обсуждения
DELETE ... RETURNING Thomas Kellerer <spam_eater@gmx.net>
Re: DELETE ... RETURNING Dennis Brakhane <brakhane@googlemail.com>
Re: DELETE ... RETURNING Thomas Kellerer <spam_eater@gmx.net>
Re: DELETE ... RETURNING Oliver Jowett <oliver@opencloud.com>
Re: DELETE ... RETURNING Thomas Kellerer <spam_eater@gmx.net>
Re: DELETE ... RETURNING Oliver Jowett <oliver@opencloud.com>
Re: DELETE ... RETURNING Thomas Kellerer <spam_eater@gmx.net>
Re: DELETE ... RETURNING Oliver Jowett <oliver@opencloud.com>
Re: DELETE ... RETURNING Thomas Kellerer <spam_eater@gmx.net>
Re: DELETE ... RETURNING "Albe Laurenz" <laurenz.albe@wien.gv.at>
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
FAQ