agora inbox for pljava-dev@postgresql.org  
help / color / mirror / Atom feed
Subject: [Pljava-dev] ResultSetHandle problem
Date: Sat, 21 Jan 2006 13:01:05 +0100
Message-ID: <43D22281.60303@tada.se> (raw)
In-Reply-To: <20060121111950.70420890F7@smtp.263.net>
References: <20060121111950.70420890F7@smtp.263.net>

Lifeng,
This is a known bug
(http://gborg.postgresql.org/project/pljava/bugs/bugupdate.php?1440).
The only way to solve it properly is to fix that bug. I haven't got
around to it just yet.

Kind regards,
Thomas Hallgren


lifeng wrote:
> 	I have a function returning set of "record", i.e. there is no information about the target structure to return until it is actually called. If I call such a function several times with different target structures within one session, I got one of two following errors:
>
> 1)
> ERROR:  query-specified return row and actual function return row do not match   
> 2)
> ERROR:  java.lang.ArrayIndexOutOfBoundsException: 2
>
> 	If I call such a function several times with different target structures within different sessions, I can got correct result. I guess that pljava caches the first target structure, though I think that it should be replaced by a new target structure when  I called it with different target structure. When I test the function with 'sql' language , it is correct. There should be erro in pljava, not in PostgreSQL.
>
>     How can I solve the problem?
>
>  	Regards
>   		lifeng
> 		
> ????????lifenggod at 263.net
> ??????????2006-01-21
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>   





view thread (5+ messages)  latest in thread

Message-ID: <43D22281.60303@tada.se>
Permalink:  ../43D22281.60303@tada.se/
Also on:    postgresql.org/message-id/43D22281.60303@tada.se

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 using the --to and --cc options:
  reply via email

  To: pljava-dev@postgresql.org
  Subject: Re: [Pljava-dev] ResultSetHandle problem
  In-Reply-To: <43D22281.60303@tada.se>

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

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