Re: Tables and functions and triggers oh my... - Mailing list pgsql-novice

From Joe Conway
Subject Re: Tables and functions and triggers oh my...
Date
Msg-id 3EC9AEB1.101@joeconway.com
Whole thread Raw
In response to Tables and functions and triggers oh my...  ("Fontenot, Paul" <Paul.Fontenot@bannerhealth.com>)
List pgsql-novice
Fontenot, Paul wrote:
> I'm going nuts, when I have this table/function/trigger combo my table
> never updates - works great as soon as I drop the trigger. Can someone
> not so green in PostgreSQL take a gander and tell me what I've done
> wrong?

[...snip...]

> textMessage := ''The PIX has generated the following: ''
> logRec.message '''';

The only thing I can see wrong is the above line. You probably want
something like:

textMessage := ''The PIX has generated the following: '' || logRec.message;

or maybe:

textMessage := ''The PIX has generated the following: '''''' ||
logRec.message || '''''''';

HTH,

Joe



pgsql-novice by date:

Previous
From: Oliver Elphick
Date:
Subject: Re: 7.2.1 => 7.3.2
Next
From: "Thilo Hille"
Date:
Subject: table corruption