Re: How to iterate through arrays?

From: John DeSoi <desoi(at)pgedit(dot)com>
To: NosyMan <nosyman(at)gmail(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: How to iterate through arrays?
Date: 2005-02-09 15:06:53
Message-ID: 3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql


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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 2005-02-09 20:51:01 Re: parsing a string with a hexadecimal notation
Previous Message NosyMan 2005-02-09 14:26:41 Re: How to iterate through arrays?