pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sean Shanny <shannyconsulting@earthlink.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and processing large numbers of rows
Date: Tue, 11 May 2004 21:29:06 -0400
Message-ID: <40A17DE2.4030902@earthlink.net> (raw)
In-Reply-To: <40A17AA6.5070209@opencloud.com>
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>

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
>



view thread (17+ messages)  latest in thread

Message-ID: <40A17DE2.4030902@earthlink.net>
Permalink:  ../40A17DE2.4030902@earthlink.net/
Also on:    postgresql.org/message-id/40A17DE2.4030902@earthlink.net

 · 

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: shannyconsulting@earthlink.net
  Subject: Re: JDBC and processing large numbers of rows
  In-Reply-To: <40A17DE2.4030902@earthlink.net>
  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> <40A17DE2.4030902@earthlink.net>

* 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