X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id AF68ED1D6C4 for ; Tue, 11 May 2004 22:29:33 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 98625-08 for ; Tue, 11 May 2004 22:29:15 -0300 (ADT) Received: from starling.mail.pas.earthlink.net (starling.mail.pas.earthlink.net [207.217.120.227]) by svr1.postgresql.org (Postfix) with ESMTP id E800CD1D6AA for ; Tue, 11 May 2004 22:29:11 -0300 (ADT) Received: from dpc6935145078.direcpc.com ([69.35.145.78] helo=earthlink.net) by starling.mail.pas.earthlink.net with asmtp (Exim 3.36 #4) id 1BNiYc-0008Bq-00 for pgsql-jdbc@postgresql.org; Tue, 11 May 2004 18:29:16 -0700 Message-ID: <40A17DE2.4030902@earthlink.net> Date: Tue, 11 May 2004 21:29:06 -0400 From: Sean Shanny User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: JDBC and processing large numbers of rows References: <20040511103520.1ADC6D1B1EE@svr1.postgresql.org> <40A0CB55.5060400@opencloud.com> <024101c4376d$d567d050$3201a8c0@rasta> <1084305394.1534.121.camel@localhost.localdomain> <036601c43797$4312ee40$3201a8c0@rasta> <1084315868.1536.132.camel@localhost.localdomain> <03f401c437b6$1bb615b0$3201a8c0@rasta> <40A17610.7040600@earthlink.net> <40A17AA6.5070209@opencloud.com> In-Reply-To: <40A17AA6.5070209@opencloud.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-ELNK-Trace: 6ca696a38bf90a1a1de288fa2098067a1aa676d7e74259b7b3291a7d08dfec7935c82fdf707f388546b9d57c18473155350badd9bab72f9c350badd9bab72f9c X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/66 X-Sequence-Number: 10076 Oliver, Thank you very much for clearing that up for me. Learn something everyday on the postgres lists... --sean Oliver Jowett wrote: > Sean Shanny wrote: > >> Make sure you do not end your SQL with a ; (semi colon) as that will >> cause the fetching part not to work. Don't know why but it does. :-) > > > Technically, "SELECT foo;" is two statements, "SELECT foo" and "", as > JDBC doesn't require a statement terminator. The (simple-minded) JDBC > query parser doesn't do anything special to ignore trailing empty > statements. And you can't DECLARE a cursor that runs two statements.. > so the driver says "two statements, can't use a cursor!". > > -O >