Re: Trigger help Solved - Mailing list pgsql-general

From David Pratt
Subject Re: Trigger help Solved
Date
Msg-id 4FE3F5DD-EC8F-11D9-A19D-000A27B3B070@eastlink.ca
Whole thread Raw
In response to Trigger help  (David Pratt <fairwinds@eastlink.ca>)
List pgsql-general
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

pgsql-general by date:

Previous
From: Karsten Hilbert
Date:
Subject: Re: Transparent i18n?
Next
From: David Pratt
Date:
Subject: Re: Transparent i18n?