[Pljava-dev] ResultSet getString

From: thomas at tada(dot)se (Thomas Hallgren)
To:
Subject: [Pljava-dev] ResultSet getString
Date: 2006-05-18 11:09:50
Message-ID: 446C55FE.2020902@tada.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pljava-dev

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
>

In response to

Responses

Browse pljava-dev by date

  From Date Subject
Next Message Marek Lewczuk 2006-05-18 11:41:53 [Pljava-dev] ResultSet getString
Previous Message Marek Lewczuk 2006-05-18 10:59:51 [Pljava-dev] Thanks for bug fix