Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id E9BDF9FBEAD for ; Thu, 24 May 2007 09:49:59 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 65666-05 for ; Thu, 24 May 2007 09:49:50 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from aa003msb.fastweb.it (aa003msb.fastweb.it [85.18.95.82]) by postgresql.org (Postfix) with ESMTP id 25DA89FBBF9 for ; Thu, 24 May 2007 09:49:56 -0300 (ADT) Received: from fluca.local (85.18.239.131) by aa003msb.fastweb.it (7.3.118.6) id 464822A0008FA2C1 for pgsql-jdbc@postgresql.org; Thu, 24 May 2007 14:49:52 +0200 From: Luca Ferrari To: pgsql-jdbc@postgresql.org Subject: Re: question about AbstractJdbc2Statement Date: Thu, 24 May 2007 14:49:51 +0200 User-Agent: KMail/1.9.7 References: <200705240824.48717.fluca1978@infinito.it> <46557F41.601@opencloud.com> In-Reply-To: <46557F41.601@opencloud.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200705241449.51487.fluca1978@infinito.it> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200705/56 X-Sequence-Number: 17046 On Thursday 24 May 2007 Oliver Jowett's cat, walking on the keyboard, wrote: > Luca Ferrari wrote: > > Can somebody explain me when multiple > > resultset can be returned from a query? > > stmt.execute("SELECT * FROM table1; SELECT * FROM table2"); > In this case, instead of processing both the queries and then throwing an exception, should not be better to parse the string and send an exception before processing the queries? Just curios! Luca