Re: Trigger/Function problem - Mailing list pgsql-general

From Dan Wilson
Subject Re: Trigger/Function problem
Date
Msg-id 00c901c06644$9e5eb4f0$078353d8@danwilson
Whole thread Raw
In response to Trigger/Function problem  ("Dan Wilson" <phpPgAdmin@acucore.com>)
List pgsql-general
If you look at my function definition, you can see that this is not within
the function body.  This is the testing of the trigger which produces the
error.  It's just a plain old SQL statment that initiates the trigger.

-Dan

----- Original Message -----
From: "Robert B. Easter" <reaster@comptechnews.com>

> On Thursday 14 December 2000 21:27, Dan Wilson wrote:
> >
> > I'm totally fine up to this point... then I try this:
> >
> > UPDATE help SET site_id = 'APW' WHERE help_id = 2;
> >
> > I get the following error:
> >
> > NOTICE:  plpgsql: ERROR during compile of f_auto_date near line 1
> > "RROR:  parse error at or near "
>
> Try:
>
> UPDATE help SET site_id = ''APW'' WHERE help_id = 2;
>
> Remember that ' is used to enclose the whole function body.  You have to
use
> '' to mean a literal '.
>


pgsql-general by date:

Previous
From: "Robert B. Easter"
Date:
Subject: Re: Trigger/Function problem
Next
From: Tom Lane
Date:
Subject: Re: Trigger/Function problem