pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Ludovico Bianchini <metlud@yahoo.it>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: ResultSet with more than 5 rows causes error
Date: Mon, 15 Oct 2007 04:07:48 -0400 (EDT)
Message-ID: <Pine.BSO.4.64.0710150406560.15470@leary.csoft.net> (raw)
In-Reply-To: <Pine.BSO.4.64.0710010309130.30230@leary.csoft.net>
References: <008901c8011f$8c815800$4101a8c0@MRHYDE>
	<Pine.BSO.4.64.0710010309130.30230@leary.csoft.net>



On Mon, 1 Oct 2007, Kris Jurka wrote:

> I've managed to reproduce this problem with the attached test case.
> At fault are the ill conceived side effects in
> org.postgresql.core.v3.SimpleParameterList#getTypeOID.  An accessor
> like getTypeOID shouldn't be responsible for setting a value for the
> out parameter.  getTypeOID is called from QueryExecutorImpl's
> sendParse method, which obviously isn't called when we reuse a server
> side prepared statement and don't need to reparse.  This leaves an
> uninitialized value in the paramValues array which we die on later.
>

I've applied a fix for this in CVS to 8.1, 8.2 and 8.3dev and it will be 
included in the next release.

Kris Jurka



view thread (11+ messages)

Message-ID: <Pine.BSO.4.64.0710150406560.15470@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0710150406560.15470@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0710150406560.15470@leary.csoft.net

 · 

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: books@ejurka.com, metlud@yahoo.it
  Subject: Re: ResultSet with more than 5 rows causes error
  In-Reply-To: <Pine.BSO.4.64.0710150406560.15470@leary.csoft.net>
  References: <008901c8011f$8c815800$4101a8c0@MRHYDE> <Pine.BSO.4.64.0710010309130.30230@leary.csoft.net> <Pine.BSO.4.64.0710150406560.15470@leary.csoft.net>

* 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