Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 9B3419FBC56 for ; Thu, 24 May 2007 03:24:56 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 01529-07 for ; Thu, 24 May 2007 03:24:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from aa001msb.fastweb.it (aa001msb.fastweb.it [85.18.95.80]) by postgresql.org (Postfix) with ESMTP id 777AD9FBC18 for ; Thu, 24 May 2007 03:24:52 -0300 (ADT) Received: from fluca.local (85.18.239.131) by aa001msb.fastweb.it (7.3.118.6) id 4648475E008634AF for pgsql-jdbc@postgresql.org; Thu, 24 May 2007 08:24:50 +0200 From: Luca Ferrari To: pgsql-jdbc@postgresql.org Subject: question about AbstractJdbc2Statement Date: Thu, 24 May 2007 08:24:48 +0200 User-Agent: KMail/1.9.6 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705240824.48717.fluca1978@infinito.it> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/53 X-Sequence-Number: 17043 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