Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vte8W-0008NC-94 for pgsql-jdbc@arkaria.postgresql.org; Thu, 19 Dec 2013 13:59:36 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vte8V-00017x-HZ for pgsql-jdbc@arkaria.postgresql.org; Thu, 19 Dec 2013 13:59:35 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Vte8U-00017q-Kj for pgsql-jdbc@postgresql.org; Thu, 19 Dec 2013 13:59:34 +0000 Received: from nm46-vm10.bullet.mail.bf1.yahoo.com ([216.109.114.203]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Vte8N-00013z-1T for pgsql-jdbc@postgresql.org; Thu, 19 Dec 2013 13:59:34 +0000 Received: from [98.139.212.150] by nm46.bullet.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 13:59:25 -0000 Received: from [98.139.212.217] by tm7.bullet.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 13:59:25 -0000 Received: from [127.0.0.1] by omp1026.mail.bf1.yahoo.com with NNFMP; 19 Dec 2013 13:59:25 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 139444.34055.bm@omp1026.mail.bf1.yahoo.com Received: (qmail 72487 invoked by uid 60001); 19 Dec 2013 13:59:25 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s1024; t=1387461565; bh=tbU4RQGsWfDGCuORv1EYbO6mjbehmYNnjk3yifOaJPs=; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=MzJsGZYOvIK4Fqj8h0wiW2OIvM0I41AIhGbRCVI/jkTX+eqlVZqBPMc/+JccMs4Tf9ZIlFgEv/62i6foC8Qv9kjAiEUxMs6m8WgOWUhVwgsN7R4FYAUdUJZRSAVXchqiw5Dt29MKBY+VvrqaZ1E+C+jMSzYl4/Ep+Ta9ENCsbXY= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=ymail.com; h=X-YMail-OSG:Received:X-Rocket-MIMEInfo:X-Mailer:References:Message-ID:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=IWEQBSV0KNDTLxu2IhcuFbNEOwU3AXZ62GQCLVzgAeMzKZ1ubqeXA56/pqDJaqNi35itHunMZtEmhNRB74uGZISIOAt3AQ5DgncN1RMoc/eSy7gTEmiogrrdI9ZqwaItXUcKDpL77ifOJ14oZIB/f00zraLqn7O0J3JV7L+aRy8=; X-YMail-OSG: CRFYH70VM1lnStO7hCwLfVD4ETcGL3ac84fWdKKvFFL_LUy oXz_yQAlPuIegDBv3LoKBHsw7xxv4YfrrB5V3uaLF0s9J6kIjqOuTiHqvDbI J7S27VgTRwBkXAEzvuryhpmmpSD6Enw.h4ZMG8mFUFi4nznyVl0F0H3nYbcn YthLuxCMBZ6SPp0bPzXmeubI2QoN8zKT7JdjUIxXg3wE2PwZceoBjS6_xpS2 GXfXSZsU2FJRi8pN0FKBrCZ2dvY78_1Pgc31.3uBC00daFBUQP0PE1rDIda4 0fY5yHUlLwc0BqI2q8Xkmuch25L_HTGvikNcxE.N6i7t4QHjx.ngNI0TiojV CAJRqJ9bMaGvl4AFNNnUPJLbuicnRpr7z31bs4kDyEXv4XUlpM7yh985WyLZ a20XB6HSWNaQaQ83P6tqgwY4p2BWIYvSRhvQW0wIzyFSyfV8fgTkEgsMPlSQ CWxHGLX_fczbrDZsn2chFaGL1dOlV7Dcm7S5Vl5mQiSa31x17L47tgk1MEjJ rT2uOTc84_huRhuE1H3SgaBfijFGTUZhV92hTpyLRAh3j8I9xsNYuumrN37T 9qA.EWq3qomkeub6biLsjyFT8DG8FQzYZt8IitZlj Received: from [76.255.18.237] by web162901.mail.bf1.yahoo.com via HTTP; Thu, 19 Dec 2013 05:59:24 PST X-Rocket-MIMEInfo: 002.001, RW1tYW51ZWwgR1VJVE9OIDxFbW1hbnVlbC5HVUlUT05AaW50cmluc2VjLmNvbT4gd3JvdGU6CgoKPiBPbiBhIGJyYW5kIG5ldyBQcmVwYXJlZFN0YXRlbWVudCwgSSBjYWxsIHRoZSBnZXRNZXRhRGF0YSgpIG1ldGhvZAo.IHdpdGhvdXQgYW55IHByb2JsZW0uIEhvd2V2ZXIsIGlmIEkgZXhlY3V0ZSB0aGUgcXVlcnkKPiAoZXhlY3V0ZVF1ZXJ5KCkpIG9uIHRoaXMgc2FtZSBzdGF0ZW1lbnQsIGNsb3NlIHRoZSBSZXN1bHRTZXQgYW5kCj4gdGhlbiBjYWxscyBhZ2FpbiBnZXRNZXRhRGF0YSgpIChzdGlsbCBvbiABMAEBAQE- X-Mailer: YahooMailWebService/0.8.172.614 References: <624816662dca463f90adcce3a43c7c06@ISC-SRV-EXC05.Intrinsec.neurones.sa> Message-ID: <1387461564.37151.YahooMailNeo@web162901.mail.bf1.yahoo.com> Date: Thu, 19 Dec 2013 05:59:24 -0800 (PST) From: Kevin Grittner Reply-To: Kevin Grittner Subject: Re: "This ResultSet is closed" exception on a PreparedStatement getMetaData() To: Emmanuel GUITON , "pgsql-jdbc@postgresql.org" In-Reply-To: <624816662dca463f90adcce3a43c7c06@ISC-SRV-EXC05.Intrinsec.neurones.sa> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org Emmanuel GUITON 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.=A0 Thanks for providing a clear, self-contained test case.=A0 (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 --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc