Search Postgresql Archives

Re: Trigger help Solved

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

 



I figured out my trigger trouble:

SET lang_code_and_text = r.lang_code_and_text || ARRAY[new.iso_id, default_text]

Above was not casting ARRAY[] as text[] so it would not concatenate with existing array - so had to set a variable to cast the type and then concatenate it to original and also had to return NULL since this is an after trigger.

Regards,
David

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

              http://archives.postgresql.org

[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