pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mike Clements <mclement@progress.com>
To: Kris Jurka <books@ejurka.com>
Cc: PostgreSQL JDBC List <pgsql-jdbc@postgresql.org>
Subject: Re: Fetching generated keys
Date: Tue, 6 Mar 2007 18:35:10 -0500
Message-ID: <626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com> (raw)
In-Reply-To: <Pine.BSO.4.64.0703061740470.4723@leary.csoft.net>

Kris,

I wrote a simple test program and schema but I can't reliably reproduce
the problem. The problem I'm seeing is intermittent. When calling next()
on the result set, it sometimes throws an exception saying the DB
connection has been closed. Of course it hasn't been closed, but the
problem is now so intermittent I can't reliably reproduce it.

If I end up being able to reproduce it consistently I'll post the sample
code.

Regards,

-----Original Message-----
From: Kris Jurka [mailto:books@ejurka.com] 
Sent: Tuesday, March 06, 2007 5:42 PM
To: Mike Clements
Cc: PostgreSQL JDBC List
Subject: Re: [JDBC] Fetching generated keys



On Tue, 6 Mar 2007, Mike Clements wrote:

> 2. call executeQuery() and use the result set.
>
> If I call statement.executeQuery(), it throws an exception saying the 
> connection is already closed ?!?!
>

I have no idea what you're testing, but the attached works fine for me. 
Could you provide individual test cases for any and all problems you are
seeing?

Kris Jurka



view thread (19+ messages)  latest in thread

Message-ID: <626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com>
Permalink:  ../626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com/
Also on:    postgresql.org/message-id/626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: mclement@progress.com, books@ejurka.com
  Subject: Re: Fetching generated keys
  In-Reply-To: <626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com>
  References: <Pine.BSO.4.64.0703061740470.4723@leary.csoft.net> <626C0646ACE5D544BC9675C1FB81846B33894F@MAIL03.bedford.progress.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox