agora inbox for pljava-dev@postgresql.org
help / color / mirror / Atom feedSubject: [Pljava-dev] ResultSet getString
Date: Thu, 18 May 2006 13:09:50 +0200
Message-ID: <446C55FE.2020902@tada.se> (raw)
In-Reply-To: <446C5033.2000508@lewczuk.com>
References: <446C5033.2000508@lewczuk.com>
Hi Marek,
Yes, this is part of the new and improved data type mapping in PL/Java.
Arrays are recognized as such so a varchar[] will map to a String[].
You'll find a complete list of mappings here:
http://wiki.tada.se/display/pljava/Default+Type+Mapping.
Your current code rely on the fact that unrecognized types are all
mapped to String.
Regards,
Thomas Hallgren
Marek Lewczuk wrote:
> Hi,
> I'm testing new version of pljava 1.3 and it seems that there is
> something wrong (or not...). In previous versions ResultSet.getString
> returned String for columns that in postgresql are defined as varchar[].
> Right now exception is thrown that "Cannot derive a value of class
> java.lang.String from an object of class [Ljava.lang.String;" - is this
> a proper behavior ?
>
> Regards,
> ML
>
> _______________________________________________
> Pljava-dev mailing list
> Pljava-dev at gborg.postgresql.org
> http://gborg.postgresql.org/mailman/listinfo/pljava-dev
>
view thread (10+ messages) latest in thread
Message-ID: <446C55FE.2020902@tada.se>
Permalink: ../446C55FE.2020902@tada.se/
Also on: postgresql.org/message-id/446C55FE.2020902@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] ResultSet getString
In-Reply-To: <446C55FE.2020902@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