From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: DELETE ... RETURNING
Date: Tue, 14 Jul 2009 00:08:05 +0200
Message-ID: <h3gb85$7bv$1@ger.gmane.org> (raw)
In-Reply-To: <4A5BADCF.7030001@opencloud.com>
References: <h3g2rn$dn8$1@ger.gmane.org>
<226a19190907131251m6c3786f5id8e8025f5c53cf66@mail.gmail.com>
<h3g536$kq4$1@ger.gmane.org>
<4A5BAA29.9000004@opencloud.com>
<h3gafc$51d$1@ger.gmane.org>
<4A5BADCF.7030001@opencloud.com>
Oliver Jowett wrote on 13.07.2009 23:57:
> Thomas Kellerer wrote:
>
>> But my understanding is, that it should print "deleted: 3", and then
>> iterate over the returned ids (but at least show the correct update count)
>
> You might want to turn on logLevel=2 and see what the server's actually
> telling us. The update count is usually just derived from the command
> status string, maybe something odd is happening there with DELETE ..
> RETURNING
The log output looks fine as far as I can tell:
00:06:22.037 (1) simple execute,
handler=org.postgresql.jdbc2.AbstractJdbc2Statement$StatementResultHandler@a20892,
maxRows=0, fetchSize=0, flags=1
00:06:22.037 (1) FE=> Bind(stmt=S_1,portal=null)
00:06:22.037 (1) FE=> Execute(portal=null,limit=0)
00:06:22.037 (1) FE=> Parse(stmt=null,query="delete from test_delete returning
id",oids={})
00:06:22.037 (1) FE=> Bind(stmt=null,portal=null)
00:06:22.037 (1) FE=> Describe(portal=null)
00:06:22.037 (1) FE=> Execute(portal=null,limit=0)
00:06:22.037 (1) FE=> Sync
00:06:22.053 (1) <=BE BindComplete [null]
00:06:22.053 (1) <=BE CommandStatus(BEGIN)
00:06:22.053 (1) <=BE ParseComplete [null]
00:06:22.053 (1) <=BE BindComplete [null]
00:06:22.053 (1) <=BE RowDescription(1)
00:06:22.053 (1) <=BE DataRow
00:06:22.053 (1) <=BE DataRow
00:06:22.053 (1) <=BE DataRow
00:06:22.053 (1) <=BE CommandStatus(DELETE 3)
00:06:22.069 (1) <=BE ReadyForQuery(T)
And it still doesn't explain why getMoreResults() is not working either.
Regards
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: DELETE ... RETURNING
In-Reply-To: <h3gb85$7bv$1@ger.gmane.org>
References: <h3g2rn$dn8$1@ger.gmane.org> <226a19190907131251m6c3786f5id8e8025f5c53cf66@mail.gmail.com> <h3g536$kq4$1@ger.gmane.org> <4A5BAA29.9000004@opencloud.com> <h3gafc$51d$1@ger.gmane.org> <4A5BADCF.7030001@opencloud.com> <h3gb85$7bv$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox