Search Postgresql Archives

Re: array_append not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
     subscribe-nomail command to majordomo@xxxxxxxxxxxxxx so that your
     message can get through to the mailing list cleanly

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux