Re: Memory exeception

From: Per-Olof Norén <pelle(at)alma(dot)nu>
To: "Peter Wasem" <peter(dot)wasem(at)itag(dot)ch>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Memory exeception
Date: 2001-11-07 15:20:44
Message-ID: 00b101c1679f$c535e870$d31014ac@lpernor
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


----- Original Message -----
From: "Peter Wasem" <peter(dot)wasem(at)itag(dot)ch>
To: <pgsql-jdbc(at)postgresql(dot)org>
Sent: Wednesday, November 07, 2001 11:18 AM
Subject: [JDBC] Memory exeception

> Hi
>
> I have a problem in processing large numbers of rows in ResultSets.
> Here's the code fragment where the problem occurs:
>
> ...
> ResultSet rset = stmt.executeQuery( "select ... from ... where ...
> order by ..." ) ;
> while(rset.next() )
> { // Process the row }
> ...
>
> The query addresses some 100'000 rows. When stmt.executeQuery() is
> executed suddenly an exception occurs.
> The same program works fine with other JDBC drivers.

You haven´t been clear on what exact exception is thrown,
but a wild guess is that executeQuery throws an exception due to the fact
that
the SQL of the query is illigal for postgresql.
Of course, without having seen your query, and the exception , this is all
speculation.
Could you post it?
Regards
Per-Olof Norén

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Per-Olof Norén 2001-11-07 15:27:01 Re: Memory exeception
Previous Message Nick Fankhauser 2001-11-07 13:52:42 Re: Memory exeception