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 BE45A8B9B26 for ; Wed, 9 Feb 2005 15:07:21 +0000 (GMT) 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 04089-01 for ; Wed, 9 Feb 2005 15:07:02 +0000 (GMT) Received: from a2s1.a2webhosting.com (host-180.a2webhosting.com [69.39.89.180]) by svr1.postgresql.org (Postfix) with ESMTP id 726018B9D0A for ; Wed, 9 Feb 2005 15:07:05 +0000 (GMT) Received: from user-1120vgk.dsl.mindspring.com ([66.32.126.20] helo=[192.168.1.10]) by a2s1.a2webhosting.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.44) id 1CytQn-0006gU-Pb; Wed, 09 Feb 2005 10:07:06 -0500 In-Reply-To: <200502091626.42032.nosyman@gmail.com> References: <200502091559.08997.nosyman@gmail.com> <200502091626.42032.nosyman@gmail.com> Mime-Version: 1.0 (Apple Message framework v619) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com> Content-Transfer-Encoding: 7bit Cc: pgsql-sql@postgresql.org From: John DeSoi Subject: Re: How to iterate through arrays? Date: Wed, 9 Feb 2005 10:06:53 -0500 To: NosyMan X-Mailer: Apple Mail (2.619) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - a2s1.a2webhosting.com X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - pgedit.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.014 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200502/122 X-Sequence-Number: 20233 On Feb 9, 2005, at 9:26 AM, NosyMan wrote: > I think the problem is not there. I got the following error: > 'ERROR: syntax error at or near "[" at character 1234', the line is: > RAISE > NOTICE '% ...',update_query_params[1]; The problem here is RAISE, NOTICE, etc. can only use simple variables in the format string. Try it like: myTextVar := update_query_params[1]; NOTICE '% ...',myTextVar; John DeSoi, Ph.D. http://pgedit.com/ Power Tools for PostgreSQL