Fwd: exception in plsql

From: Ravi <nm(dot)ravi2005(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: Fwd: exception in plsql
Date: 2010-02-22 14:03:02
Message-ID: bf8f49251002220603m6ab7091boedf75028a80fd5d9@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

---------- Forwarded message ----------
From: Ravi <nm(dot)ravi2005(at)gmail(dot)com>
Date: Mon, Feb 22, 2010 at 7:31 PM
Subject: Re: [BUGS] exception in plsql
To: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>

when I tried to use the toArray method to extract exception raised saying

org.postgresql.util.PSQLException: Cannot cast an instance of
[Ljava.lang.Object; to type Types.ARRAY

-Ravi

On Mon, Feb 22, 2010 at 6:46 PM, Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov
> wrote:

> beulah prasanthi wrote:
>
> > org.postgresql.util.PSQLException: Cannot cast an instance of
> > java.util.ArrayList to type Types.ARRAY*
>
> An ArrayList is not an array -- it is a List implementation which
> uses an array, internally. What happens if you use the toArray
> method to extract an array from the List and pass that in?
>
> -Kevin
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs(at)postgresql(dot)org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>

--
Ravi.T
BayLogic Technologies India Pvt. Ltd.
Vizag.

--
Ravi.T
BayLogic Technologies India Pvt. Ltd.
Vizag.

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tim Bunce 2010-02-22 14:03:23 Re: BUG #5334: Version 2.22 of Perl Safe module breaks UTF8 PostgreSQL 8.4
Previous Message Kevin Grittner 2010-02-22 13:16:17 Re: exception in plsql