Re: getArray() and char[] - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: getArray() and char[]
Date
Msg-id Pine.BSO.4.64.0702012139250.26065@leary2.csoft.net
Whole thread Raw
In response to getArray() and char[]  (Jeffrey Cox <namredips@gmail.com>)
List pgsql-jdbc

On Thu, 1 Feb 2007, Jeffrey Cox wrote:

> Are you saying that the line I added in TypeInfoCache was correct with
> "java.lang.Character", but in AbstractJdbc2Array I need to do something to
> ensure the return of a string... or should the line in TypeInfoCache be a
> string?
>


I was only really thinking about the addition to TypeInfoCache mapping
"char" -> Types.CHAR, but you're right the class should be
java.lang.String.  That class must be what's returned by getObject which
is driven off the Types.CHAR value.

Kris Jurka



pgsql-jdbc by date:

Previous
From: Miroslav Šulc
Date:
Subject: JDBC and arrays
Next
From: Kris Jurka
Date:
Subject: Re: JDBC and arrays