pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Sean Shanny <shannyconsulting@earthlink.net>
Cc: David Wall <d.wall@computer.org>
Cc: pg@fastcrypt.com
Cc: pgsql-jdbc@postgresql.org
Subject: Re: JDBC and processing large numbers of rows
Date: Wed, 12 May 2004 13:15:18 +1200
Message-ID: <40A17AA6.5070209@opencloud.com> (raw)
In-Reply-To: <40A17610.7040600@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>

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: <40A17AA6.5070209@opencloud.com>
Permalink:  ../40A17AA6.5070209@opencloud.com/
Also on:    postgresql.org/message-id/40A17AA6.5070209@opencloud.com

 · 

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: oliver@opencloud.com, shannyconsulting@earthlink.net, d.wall@computer.org, pg@fastcrypt.com
  Subject: Re: JDBC and processing large numbers of rows
  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>

* 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