DELETE ... RETURNING - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject DELETE ... RETURNING
Date
Msg-id h3g2rn$dn8$1@ger.gmane.org
Whole thread Raw
Responses Re: DELETE ... RETURNING  (Dennis Brakhane <brakhane@googlemail.com>)
Re: DELETE ... RETURNING  ("Albe Laurenz" <laurenz.albe@wien.gv.at>)
List pgsql-jdbc
Hi,

when using the RETURNING clause in a DELETE statement the driver throws an error:

org.postgresql.util.PSQLException: A result was returned when none was expected.

The code that I'm using is as follows:

Statement stmt = connection.createStatement();
stmt.executeUpdate("delete from person where firstname like 'A%' returning id");

Am I missing something or is the "RETURNING" feature not supported by the driver?

I'm using postgresql-8.4-701.jdbc3.jar with Java5

Regards
Thomas

pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: No 8.4 documentation on the JDBC website
Next
From: Dennis Brakhane
Date:
Subject: Re: DELETE ... RETURNING