Re: Trigger/Function problem

From: "Dan Wilson" <phpPgAdmin(at)acucore(dot)com>
To: "Robert B(dot) Easter" <reaster(at)comptechnews(dot)com>, "pgsql general" <pgsql-general(at)postgresql(dot)org>
Subject: Re: Trigger/Function problem
Date: 2000-12-15 03:10:44
Message-ID: 00c901c06644$9e5eb4f0$078353d8@danwilson
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)comptechnews(dot)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 '.
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-12-15 03:46:50 Re: Trigger/Function problem
Previous Message Josh Rovero 2000-12-15 02:54:08 Re: How to import/export data from/to an ASCII file?