Re: getArray() and char[]

From: Kris Jurka <books(at)ejurka(dot)com>
To: Jeffrey Cox <namredips(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: getArray() and char[]
Date: 2007-02-02 02:40:16
Message-ID: Pine.BSO.4.64.0702012139250.26065@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2007-02-02 07:07:43 Re: JDBC and arrays
Previous Message Miroslav Šulc 2007-02-02 01:37:56 JDBC and arrays