pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Luca Ferrari <fluca1978@infinito.it>
To: pgsql-jdbc@postgresql.org
Subject: question about AbstractJdbc2Statement
Date: Thu, 24 May 2007 08:24:48 +0200
Message-ID: <200705240824.48717.fluca1978@infinito.it> (raw)

Hi all,
in the org.postgresql.jdbc2.AsbtractJdbc2Statement#executeQuery there's:

  if (result.getNext() != null)
            throw new PSQLException(GT.tr("Multiple ResultSets were returned 
by the query."), PSQLState.TOO_MANY_RESULTS);

It is not clear to me when an executeQuery could have multiple result sets as 
result, since the execution of the query thru the queryexecutor seems to me 
to exploit the SendOneQuery method. Is this related to the batch processing 
or something I'm missing from SQL? Can somebody explain me when multiple 
resultset can be returned from a query?

Thanks,
Luca



view thread (4+ messages)  latest in thread

Message-ID: <200705240824.48717.fluca1978@infinito.it>
Permalink:  ../200705240824.48717.fluca1978@infinito.it/
Also on:    postgresql.org/message-id/200705240824.48717.fluca1978@infinito.it

 · 

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: fluca1978@infinito.it
  Subject: Re: question about AbstractJdbc2Statement
  In-Reply-To: <200705240824.48717.fluca1978@infinito.it>
  References: <200705240824.48717.fluca1978@infinito.it>

* 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