pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Vitalii Tymchyshyn <tivv00@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
Date: Wed, 16 Mar 2011 12:43:58 +0200
Message-ID: <4D80946E.3060200@gmail.com> (raw)
In-Reply-To: <AANLkTikCgRgtG5yS2vAJ7Z0WiRv=e6mK9TrSFVFG_TPr@mail.gmail.com>
References: <AANLkTikZ5WAOHHc-wBx_ziVYvPs787dOxGziLZfT8ssw@mail.gmail.com>
	<C9A5EA27.501B%pico303@gmail.com>
	<AANLkTikCgRgtG5yS2vAJ7Z0WiRv=e6mK9TrSFVFG_TPr@mail.gmail.com>

16.03.11 12:40, Dave Cramer ???????(??):
> So looking at the code if you add RETURN_GENERATED_KEYS to the
> statement it returns all of the columns. That's rather ugly. Is there
> a way to determine just the generated keys ?
AFAIR it was a long discussion on what is "generated". E.g. is 
calculated 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 
<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html; sql, 
String 
<http://download.oracle.com/javase/1.5.0/docs/api/java/lang/String.html;[] columnNames)".

Best regards, Vitalii Tymchyshyn

view thread (16+ messages)  latest in thread

Message-ID: <4D80946E.3060200@gmail.com>
Permalink:  ../4D80946E.3060200@gmail.com/
Also on:    postgresql.org/message-id/4D80946E.3060200@gmail.com

 · 

reply

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: tivv00@gmail.com
  Subject: Re: Problem with executeBatch and "A result was returned when none was expected"
  In-Reply-To: <4D80946E.3060200@gmail.com>
  References: <AANLkTikZ5WAOHHc-wBx_ziVYvPs787dOxGziLZfT8ssw@mail.gmail.com> <C9A5EA27.501B%pico303@gmail.com> <AANLkTikCgRgtG5yS2vAJ7Z0WiRv=e6mK9TrSFVFG_TPr@mail.gmail.com> <4D80946E.3060200@gmail.com>

* 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