pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Grittner <kgrittn@ymail.com>
To: Emmanuel GUITON <Emmanuel.GUITON@intrinsec.com>
To: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: "This ResultSet is closed" exception on a PreparedStatement getMetaData()
Date: Thu, 19 Dec 2013 05:59:24 -0800 (PST)
Message-ID: <1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.com> (raw)
In-Reply-To: <624816662dca463f90adcce3a43c7c06@ISC-SRV-EXC05.Intrinsec.neurones.sa>
References: <624816662dca463f90adcce3a43c7c06@ISC-SRV-EXC05.Intrinsec.neurones.sa>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

Emmanuel GUITON <Emmanuel.GUITON@intrinsec.com> wrote:


> On a brand new PreparedStatement, I call the getMetaData() method
> without any problem. However, if I execute the query
> (executeQuery()) on this same statement, close the ResultSet and
> then calls again getMetaData() (still on the same
> PreparedStatement), getMetaData() throws a RuntimeException
> saying "This ResultSet is closed".
> I would expect to be able to get the metadata. Is that a bug in
> the JDBC driver ?

It sure looks like a bug to me.  Thanks for providing a clear,
self-contained test case.  (It would make a good addition to our
unit tests once the bug is fixed.)

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


-- 
Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-jdbc



view thread (6+ messages)  latest in thread

Message-ID: <1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.com>
Permalink:  ../1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.com/
Also on:    postgresql.org/message-id/1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.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: kgrittn@ymail.com, Emmanuel.GUITON@intrinsec.com
  Subject: Re: "This ResultSet is closed" exception on a PreparedStatement getMetaData()
  In-Reply-To: <1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.com>
  References: <624816662dca463f90adcce3a43c7c06@ISC-SRV-EXC05.Intrinsec.neurones.sa> <1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.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