Re: JDBC

From: Barry Lind <barry(at)xythos(dot)com>
To: Michael Welter <mike(at)introspect(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC
Date: 2002-02-17 00:56:10
Message-ID: 3C6EFFAA.5090104@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-jdbc

Michael,

I am not sure why you are using addDataType(). You should be able to
just use getArray() and setArray() with the 7.2 driver.

thanks,
--Barry

Michael Welter wrote:
> I'm trying to use JDBC to extract data from a ResultSet. Everything
> works fine except for columns defined as arrays. The JDBC array type
> names are preceded by a "_" (_text, _float8, _date, _timestampz, etc.)
>
> The exception I get is "Class names may not have _ in them. You supplied
> {0}". This is with conn.addDataType( "_text","org.postgres.PGobject" );
>
> I'm using Postgres 7.2. I wasn't able to compile with j2sdk1.4 so I had
> to drop back to jdk1.3.
>
> Does pg JDBC come with data handlers for arrays? Is anyone else using
> arrays with JDBC?
>
> Thanks for your help.
> Mike
>
>
>
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org
>

In response to

  • JDBC at 2002-02-16 23:34:03 from Michael Welter

Browse pgsql-general by date

  From Date Subject
Next Message paul 2002-02-17 01:33:30 VERY basic
Previous Message Mark & Candice White 2002-02-16 23:41:44 search array field?

Browse pgsql-jdbc by date

  From Date Subject
Next Message Ian Brandt 2002-02-17 16:12:44 JDBC3 Sugquestion
Previous Message Michael Welter 2002-02-16 23:34:03 JDBC