Re: Tables and functions and triggers oh my...

Поиск
Список
Период
Сортировка
От Joe Conway
Тема Re: Tables and functions and triggers oh my...
Дата
Msg-id 3EC9AEB1.101@joeconway.com
обсуждение исходный текст
Ответ на Tables and functions and triggers oh my...  ("Fontenot, Paul" <Paul.Fontenot@bannerhealth.com>)
Список 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 по дате отправления:

Предыдущее
От: Oliver Elphick
Дата:
Сообщение: Re: 7.2.1 => 7.3.2
Следующее
От: "Thilo Hille"
Дата:
Сообщение: table corruption