Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2306F635C94 for ; Mon, 13 Jul 2009 16:58:52 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 71574-04-5 for ; Mon, 13 Jul 2009 16:58:40 -0300 (ADT) X-Greylist: delayed 00:07:20.616375 by SQLgrey-1.7.6 Received: from mail-vw0-f173.google.com (mail-vw0-f173.google.com [209.85.212.173]) by mail.postgresql.org (Postfix) with ESMTP id 1DFCE63478E for ; Mon, 13 Jul 2009 16:58:37 -0300 (ADT) Received: by vwj3 with SMTP id 3so1936687vwj.15 for ; Mon, 13 Jul 2009 12:58:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=ajhyIv6tbKOgbPHkcwo8JSP17VcyDYIvcYw1wDwLkKU=; b=AAk3d/t0ftWEuOTAJNgN3B7RlkZpGb81ysJycIbJ9fWaze+n1nFpdGmBVpuzPdBhTW 3XEaNwofrZsJOzEPmfHtdWfqYwk71xIpz5RRT50BnO5/4HP9tnTVk5yEsDQg7HGzbyew ZhFKJcGbktFGrU4oDwZSr5/OqIBO8QbJiJzDg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=AhOjqOah0poblNnMFwaNgqsFBWNdQppSbY0MJ9YrmEWX/0VyNyr+ywAfuRne4ydH90 xw78nakLd4MROChhCIxM81RE+rRDb87HMAOXKjQi9UliiV+Jaldl0bDbRC5iESIy9ekz PhQxkGttGa4CySEbIloMgsQvwhBCMn+nMNZ00= MIME-Version: 1.0 Received: by 10.220.76.21 with SMTP id a21mr7675602vck.114.1247514676309; Mon, 13 Jul 2009 12:51:16 -0700 (PDT) In-Reply-To: References: From: Dennis Brakhane Date: Mon, 13 Jul 2009 21:51:01 +0200 Message-ID: <226a19190907131251m6c3786f5id8e8025f5c53cf66@mail.gmail.com> Subject: Re: DELETE ... RETURNING To: Thomas Kellerer Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200907/24 X-Sequence-Number: 19792 On Mon, Jul 13, 2009 at 9:44 PM, Thomas Kellerer wrote: > 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? executeUpdate by definitionem can only return an int, the number of rows affected. You probably can use stmt.executeQuery instead