From: thomas at tada.se (Thomas Hallgren) Date: Thu, 18 May 2006 13:09:50 +0200 Subject: [Pljava-dev] ResultSet getString In-Reply-To: <446C5033.2000508@lewczuk.com> References: <446C5033.2000508@lewczuk.com> Message-ID: <446C55FE.2020902@tada.se> 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 >