Search Postgresql Archives

Re: Fwd: JDBC Array double precision [] error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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").getArray(); solve my problem!

Thanks again!!

Juan Cook




On Sun, Mar 31, 2013 at 7:38 PM, Hannes Erven <hannes@xxxxxxxx> 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


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux