Re: Error when using array variable

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: Dongsoo Yoon <dsyoon(at)metasoftworks(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Error when using array variable
Date: 2005-07-22 13:51:56
Message-ID: 20050722135156.GA19128@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

On Fri, Jul 22, 2005 at 06:24:03PM +0900, Dongsoo Yoon wrote:
>
> When array variable is allocated with any value,
> allocating is not done.

It's not clear what this means -- what are you expecting to happen,
and what actually is happening?

> v_testval := t_modifiedTimes[v_dayIndex ] ; -------------->?????? ?????? ?? ????????
>
> raise exception '???????????? t_modifiedTimes[v_dayIndex ]=', v_testval ;

Is this RAISE just for debugging purposes? Are you aware that you
need to include a % character in the format string if you want to
display the subsequent argument's value?

http://www.postgresql.org/docs/8.0/static/plpgsql-errors-and-messages.html

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message lucas 2005-07-22 14:03:40 Convert numeric to money
Previous Message Pascual De Ruvo 2005-07-22 13:21:06 Re: Using subselects as joins in POstgeSQL (possible?, examples)