X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 201F152858 for ; Fri, 22 Jul 2005 10:52:08 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 90265-05 for ; Fri, 22 Jul 2005 13:52:01 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id DD18B52862 for ; Fri, 22 Jul 2005 10:52:00 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j6MDq0IR019858 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 22 Jul 2005 07:52:03 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j6MDpwcu019172; Fri, 22 Jul 2005 07:51:58 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j6MDpuPg019171; Fri, 22 Jul 2005 07:51:56 -0600 (MDT) (envelope-from mfuhr) Date: Fri, 22 Jul 2005 07:51:56 -0600 From: Michael Fuhr To: Dongsoo Yoon Cc: pgsql-sql@postgresql.org Subject: Re: Error when using array variable Message-ID: <20050722135156.GA19128@winnie.fuhr.org> References: <000601c58e9f$1a3d0cc0$2d216b3d@notebook04> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000601c58e9f$1a3d0cc0$2d216b3d@notebook04> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.005 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/190 X-Sequence-Number: 22168 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/