Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 433E51337BB9 for ; Wed, 16 Mar 2011 07:19:04 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 05836-02 for ; Wed, 16 Mar 2011 10:18:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-iy0-f174.google.com (mail-iy0-f174.google.com [209.85.210.174]) by mail.postgresql.org (Postfix) with ESMTP id A88DF1337B6E for ; Wed, 16 Mar 2011 07:18:56 -0300 (ADT) Received: by iyb26 with SMTP id 26so1504244iyb.19 for ; Wed, 16 Mar 2011 03:18:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:user-agent:date:subject:from:to:cc:message-id :thread-topic:in-reply-to:mime-version:content-type :content-transfer-encoding; bh=xANhVnusaOKn2o0Sbi/9yHxQLaJAylywUbETeDGbSqY=; b=Vn3kF7iex4PU0aoYrBgN/IJ2IRNoRci5K9VVykbESfYlXa2MVe3LDGrCacePGlKCeV 4p4Wl0wlDYfa8HpLRZPGdiTUtKqUVmHgmPPHh41cjf4/omYneS6LomS6MxJ9T+9J1F+Y ZIZyim1WJXfTAOJh8gJ8b587crSqAd6yARJEM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=user-agent:date:subject:from:to:cc:message-id:thread-topic :in-reply-to:mime-version:content-type:content-transfer-encoding; b=M+7OJ6dyD6Xi/1H/3FntUQTD/twXyFLOYQMWxy03hYhKHhC0WRxebwA4VxSnnVAiew nKxireqyhsZp35MBBIv/0RyDt3N1sjRqA9JAeEHL6G3caSC4Hb8muHSaEvprd7u2h9GP mZnMKXVMWUnGXQA62ary2fSpQHKBj5siLD+do= Received: by 10.42.152.136 with SMTP id i8mr699545icw.200.1300270736758; Wed, 16 Mar 2011 03:18:56 -0700 (PDT) Received: from [10.0.0.2] ([65.100.168.215]) by mx.google.com with ESMTPS id gy41sm575078ibb.5.2011.03.16.03.18.55 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 16 Mar 2011 03:18:56 -0700 (PDT) User-Agent: Microsoft-MacOutlook/14.2.0.101115 Date: Wed, 16 Mar 2011 04:18:52 -0600 Subject: Re: Problem with executeBatch and "A result was returned when none was expected" From: Sean Bowman To: Dave Cramer , Oliver Jowett CC: Message-ID: Thread-Topic: [JDBC] Problem with executeBatch and "A result was returned when none was expected" In-Reply-To: Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.046 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_ENVFROM_END_DIGIT=1.553, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/18 X-Sequence-Number: 21573 I'm actually using UUID's, so it's even easier. I was just hoping to let the database routines do the UUID generation, but I can do that on the Java side instead. On 3/16/11 4:10 AM, "Dave Cramer" wrote: >On Wed, Mar 16, 2011 at 5:59 AM, Oliver Jowett >wrote: >> On 16 March 2011 22:14, Sean Bowman wrote: >> >>> Any suggestions or pointing out my code flaws would be most >>>appreciated. Or >>> does executeBatch just not work? I've been battling this issue most >>>of the >>> day and I'm just about at my wits' end. Should I just give up and >>>switch to >>> calling execute() one at a time? Seems far less efficient, but at >>>least it >>> seems to work. >There are some what more efficient ways to do this, such as >incrementing the sequence by the number of keys you need. > >Dave