Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Data Bases > Pgsql General > Re: Closed Resu...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 2 of 2 Topic 15427 of 17602
Post > Topic >>

Re: Closed ResultSet error

by books@[EMAIL PROTECTED] (Kris Jurka) Apr 30, 2008 at 04:06 PM

On Wed, 30 Apr 2008, Bayless Kirtley wrote:

> I am migrating from another database to PostgreSQL and have run into a 
> serious problem. The Java program runs fine on the other DB but under 
> PostgreSQL it gives the error, "ResultSet is closed."
>
> I have removed all occurrences of closing any result sets and there are 
> no instances of closing underlying statements within those methods. 
> Finally, I have stepped through the entire operation with a debugger and

> found no unexpected events. Each time a new result set was created, the 
> debugger indicated it to be a new entity. When finally returning to the 
> original, it appeared to be the correct instance.

When the same statement is used to execute a second query, the first 
ResultSet is closed automatically.  I'm guessing that this is what's 
happening to you and you need to be sure to create a new Statement for 
each concurrently open ResultSet you have.

Kris Jurka

-- 
Sent via pgsql-general mailing list (pgsql-general@[EMAIL PROTECTED]
)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general
 




 2 Posts in Topic:
Closed ResultSet error
bkirt@[EMAIL PROTECTED]   2008-04-30 14:56:49 
Re: Closed ResultSet error
books@[EMAIL PROTECTED]   2008-04-30 16:06:37 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Mon Dec 1 19:51:42 CST 2008.