pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John DeSoi <desoi@pgedit.com>
To: NosyMan <nosyman@gmail.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: How to iterate through arrays?
Date: Wed, 9 Feb 2005 10:06:53 -0500
Message-ID: <3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com> (raw)
In-Reply-To: <200502091626.42032.nosyman@gmail.com>
References: <200502091559.08997.nosyman@gmail.com>
	<opslxolvodth1vuj@musicbox>
	<200502091626.42032.nosyman@gmail.com>


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




view thread (4+ messages)

Message-ID: <3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com>
Permalink:  ../3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com/
Also on:    postgresql.org/message-id/3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: desoi@pgedit.com, nosyman@gmail.com
  Subject: Re: How to iterate through arrays?
  In-Reply-To: <3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com>
  References: <200502091559.08997.nosyman@gmail.com> <opslxolvodth1vuj@musicbox> <200502091626.42032.nosyman@gmail.com> <3B62EE28-7AAC-11D9-8527-000A95B03262@pgedit.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox