Re: streaming result sets: progress

From: Nic Ferrier <nferrier(at)tapsellferrier(dot)co(dot)uk>
To: Scott Lamb <slamb(at)slamb(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: streaming result sets: progress
Date: 2002-11-30 22:16:19
Message-ID: 873cpi4sb0.fsf@pooh-sticks-bridge.tapsellferrier.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


slamb writes:
> Okay, I understand now. The confusion is, you wrote this:
>
> Statement st = connection.createStatement(
> ResultSet.CLOSE_CURSORS_AT_COMMIT,
> ResultSet.CONCUR_READ_ONLY);
>
> but evil gnomes changed the bits in my copy of the email to what I
> expected, so I didn't notice a difference. ;) I meant this:
>
> Statement st = connection.createStatement(
> ResultSet.TYPE_FORWARD_ONLY,
> ResultSet.CONCUR_READ_ONLY,
> ResultSet.CLOSE_CURSORS_AT_COMMIT);
>
> Type, concurrency, and holdability are all orthogonal parameters to
> createStatement and prepareStatement.

I've looked into this a bit more... I'm not gonna do this right now
because this call is only JDBC3 compatible.

We'll have to stick with the fetch size method I think.

Nic

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2002-12-01 08:43:04 Re: setUseServerPrepare(true) and executeQuery(String)
Previous Message Dennis King 2002-11-30 18:02:04 Re: Redhat 8 default database warning: JDBC problems