From: | Juan Pablo Cook <juampick(at)gmail(dot)com> |
---|---|
To: | Hannes Erven <hannes(at)erven(dot)at> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Fwd: JDBC Array double precision [] error |
Date: | 2013-03-31 22:49:06 |
Message-ID: | CAKge45Lp=geE_T3723H8hp6dM9-D2hTAZiwT1u5WqVouAmysdQ@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-jdbc |
Hi Hannes...
Thanks a lot for your help!
I was stuck being many many hours trying and googling it the problem but
didn't realize that.
This: *Double[] array = (Double[]) rs1.getArray("histograma").get**Array();*
solve my problem!
Thanks again!!
Juan Cook
On Sun, Mar 31, 2013 at 7:38 PM, Hannes Erven <hannes(at)erven(dot)at> wrote:
> Hi Juan Pablo,
>
>
>
> > double[] array = (double[]) rs1.getArray("histograma").**getArray();
>
>> java.lang.ClassCastException: [Ljava.lang.Double; cannot be cast to [D
>>
>
>
> The error message already tells you the solution: use Double, not double.
>
> Like this:
> Double[] array = (Double[]) rs1.getArray("histograma").**getArray();
>
>
> Best regards,
>
> -hannes
>
From | Date | Subject | |
---|---|---|---|
Next Message | Tim Uckun | 2013-03-31 23:35:47 | Using varchar primary keys. |
Previous Message | Gavan Schneider | 2013-03-31 22:45:50 | Re: Money casting too liberal? |
From | Date | Subject | |
---|---|---|---|
Next Message | Nicholas White | 2013-04-01 06:28:13 | Re: JDBC Array double precision [] error |
Previous Message | Hannes Erven | 2013-03-31 22:38:28 | Re: Fwd: JDBC Array double precision [] error |