Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id C1D701337BDB for ; Wed, 16 Mar 2011 09:26:05 -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 36487-04 for ; Wed, 16 Mar 2011 12:25:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-fx0-f46.google.com (mail-fx0-f46.google.com [209.85.161.46]) by mail.postgresql.org (Postfix) with ESMTP id AA7281337B96 for ; Wed, 16 Mar 2011 09:25:57 -0300 (ADT) Received: by fxm17 with SMTP id 17so1581497fxm.19 for ; Wed, 16 Mar 2011 05:25:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; bh=53B1rFD8qdbQ4jeAcZbdYsbsDzOljXenGsgSm9Ufi4U=; b=L8xSWwvK8njnXNmW0qzg4MFNlZiJKL39Q7vITXPkYB+lyy6+GuXyAyv/8QdR6O6ztA w0OdBuTA3s+kXprrlzSreUULlo+LbnB9BCEvomiQzVZ/cJr+FDL+SUa0bITU2lf8nNVk ysaJH9Sw13EqFH39ac7RM3Dx8Mqfs2Lsg8vkU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=ClfeBZjtQTlqtxsVNkm1PDVSk738iEp/qK+AbUYECAzpFiW285WeSwA7fqejXGL3jM 7QnFrb5/zeDSjmQPsTT3Pl8gUYYxF2N1YoZilTq0Wf/glnQ9BJxoVyNqIEWSsjnze2tK KsvnPJvW6I2KOS+gmZGQS9KUuZc6vMK2QJTgE= Received: by 10.223.127.210 with SMTP id h18mr865856fas.67.1300278352361; Wed, 16 Mar 2011 05:25:52 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.56.6 with HTTP; Wed, 16 Mar 2011 05:25:31 -0700 (PDT) In-Reply-To: <4D80993C.6030203@gmail.com> References: <4D80946E.3060200@gmail.com> <4D80993C.6030203@gmail.com> From: Dave Cramer Date: Wed, 16 Mar 2011 08:25:31 -0400 X-Google-Sender-Auth: V2c8eu9Pkyg6E8FJjui0e_teBvI Message-ID: Subject: Re: Problem with executeBatch and "A result was returned when none was expected" To: Vitalii Tymchyshyn Cc: pgsql-jdbc@postgresql.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7 X-Spam-Level: X-Archive-Number: 201103/23 X-Sequence-Number: 21578 On Wed, Mar 16, 2011 at 7:04 AM, Vitalii Tymchyshyn wrot= e: > 16.03.11 12:57, Dave Cramer =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(= =D0=BB=D0=B0): >> >> On Wed, Mar 16, 2011 at 6:43 AM, Vitalii Tymchyshyn >> =C2=A0wrote: >>> >>> 16.03.11 12:40, Dave Cramer =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(= =D0=BB=D0=B0): >>> >>> AFAIR it was a long discussion on what is "generated". E.g. is calculat= ed >>> default value (CURRENT TIMESTAMP) generated? Constant default value? So= , >>> the >>> driver now either returns all or you can pass columns you require by >>> yourself with "boolean execute(String sql, =C2=A0String[] columnNames)"= . >>> >> So ideally we need some backend support here. The backend can >> certainly figure out what was the result of a default column. > > The question AFAIK is not technical, there's simply no strict definition = of > "generated". And no public consensus on it. Yes, this is a typical problem with JDBC.