Re: array_append not working - Mailing list pgsql-general

From Joe Conway
Subject Re: array_append not working
Date
Msg-id 42532A2A.3080609@joeconway.com
Whole thread Raw
In response to array_append not working  ("Lucas F." <lucasf@vagabond-software.com>)
List pgsql-general
Lucas F. wrote:
> Sorry, this is probably a dumb mistake on my part. New to Postgres. Running
> 8.0 on Linux.
>
> The array_append below is giving me a syntax error, and I have no idea what
> I am doing wrong.
>

> array_append(v_query_array,(rec.item_field_name || '=' ||
> v_value::text)::text);
>

You need to assign the result of array_append() to a variable. It
doesn't change v_query_array in place.

Joe

pgsql-general by date:

Previous
From: "Lucas F."
Date:
Subject: array_append not working
Next
From: Kris Jurka
Date:
Subject: Re: Loosing connection with the database