Re: Unusable resultset

From: Dave Cramer <Dave(at)micro-automation(dot)net>
To: Matt Mello <alien(at)spaceship(dot)com>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Unusable resultset
Date: 2003-01-29 12:00:31
Message-ID: 1043841631.1064.45.camel@inspiron.cramers
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Matt,

There is work to make the driver do what you want.

your second problem is more troublesome. What happens when you do the
query in psql?

The driver doesn't really do anything but proxy the query for you.

Dave
On Wed, 2003-01-29 at 00:55, Matt Mello wrote:
> I just did a query that would have returned impossible amounts of data,
> eg: select * from BIGtable. I am porting from Informix to Postgresql,
> and I guess I have been spoiled by the IFX JDBC drivers, which return
> only as much data, relatively speaking, as is needed. When the IFX JDBC
> driver runs out of data, it asks the backend for more data. Apparently
> the backend caches the results instead of shoving it all down the socket
> to the JDBC driver all at once. (Oh, how I wish PG JDBC did that.)
>
> Anyway, when I did the above, I got back a null resultset. I don't even
> think it threw an exception (but I will try to check on that). All of
> that is fine and can be dealt with. My real problem is that the
> connection is no longer usable, as ANY query I perform throws a
> "postgresql.con.type" exception.
>
> Why does it do that, and what is a "type" exception?
>
> I now catch this specific exception as an indication that the connection
> is bad, after which I close it, but it sure is annoying to have to put
> driver-specific code in my java codebase. :(
--
Dave Cramer <Dave(at)micro-automation(dot)net>

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Patric Bechtel 2003-01-29 12:44:59 Re: Unusable resultset [Viruschecked]
Previous Message Daniel Serodio 2003-01-29 11:50:30 Re: DbVisualizer shows same tables for all DBs