Re: JDBC and processing large numbers of rows

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Sean Shanny <shannyconsulting(at)earthlink(dot)net>
Cc: David Wall <d(dot)wall(at)computer(dot)org>, pg(at)fastcrypt(dot)com, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC and processing large numbers of rows
Date: 2004-05-12 01:15:18
Message-ID: 40A17AA6.5070209@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Sean Shanny 2004-05-12 01:29:06 Re: JDBC and processing large numbers of rows
Previous Message Oliver Jowett 2004-05-12 01:07:21 Re: JDBC and processing large numbers of rows