Re: JDBC and arrays

From: Miroslav Šulc <miroslav(dot)sulc(at)startnet(dot)cz>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: JDBC and arrays
Date: 2007-02-03 19:41:57
Message-ID: 45C4E585.5080305@startnet.cz
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I got it. I read it as string and then I parse the string to get the values.

--
Miroslav Šulc

Miroslav Šulc napsal(a):
> I got writing of inet[] working through object that implements
> PGobject (you were right, it works only with _inet), but I cannot read
> inet[]. I thought I'll get String[] through getArray(index).getArray()
> but instead I get an exception on getArray(index). What is the correct
> way to read inet[]?
>
> Caused by: org.postgresql.util.PSQLException: Method
> org.postgresql.jdbc3g.Jdbc3gArray.getArrayImpl(long,int,Map) is not
> implemented.
> at org.postgresql.Driver.notImplemented(Driver.java:728)
> at
> org.postgresql.jdbc2.AbstractJdbc2Array.getArrayImpl(AbstractJdbc2Array.java:228)
>
> at
> org.postgresql.jdbc2.AbstractJdbc2Array.getArray(AbstractJdbc2Array.java:71)
>
> at
> cz.startnet.utils.java.sql.ResultSetUtils.getValue(ResultSetUtils.java:253)
>
>
> --
> Miroslav Šulc

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message BillR 2007-02-04 21:14:16 meta data domains ibatis abator etc
Previous Message Miroslav Šulc 2007-02-03 19:25:26 Re: JDBC and arrays