Re: Trigger help Solved

From: David Pratt <fairwinds(at)eastlink(dot)ca>
To: David Pratt <fairwinds(at)eastlink(dot)ca>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Trigger help Solved
Date: 2005-07-04 13:27:04
Message-ID: 4FE3F5DD-EC8F-11D9-A19D-000A27B3B070@eastlink.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David Pratt 2005-07-04 13:29:45 Re: Transparent i18n?
Previous Message laser 2005-07-04 07:49:30 Re: out of memory problem in CVS