From: Joepie Platteau <Joepie.Platteau@kulak.ac.be>
To: olly@lfix.co.uk
Cc: pgsql-admin@postgresql.org
Subject: Re: Trigger set to backup to other table NOT FUNCTIONING...
Date: Tue, 14 Sep 2004 09:43:43 +0200
Message-ID: <4146A12F.8070105@kulak.ac.be> (raw)
References: <414570D2.9090405@kulak.ac.be>
<1095138045.21855.44.camel@linda>
Thank you very much!!!
Indeed this was the problem...
If I 'd once see you in a pub, I'd buy you a drink!!
Joepie.
Oliver Elphick wrote:
>On Mon, 2004-09-13 at 11:05, Joepie Platteau wrote:
>
>
>>Hi,
>>I have a problem with my trigger... :
>>
>>my tables :
>>
>>CREATE TABLE public."T-Alumni" (
>>"Id_Persoon" int8 DEFAULT nextval('"T-Alumni_Id_Persoon_seq"'::text) NOT
>>
>>
> ^^^^^^^^^^^^
>
>
>>NULL,
>>
>>
>...
>
>
>>CREATE FUNCTION public.f100() RETURNS trigger AS '
>>BEGIN
>>INSERT INTO "T-Alumni-backup" VALUES (NEW.Id_Persoon, NEW.SteunendLid,
>>
>>
> ^^^^^^^^^^
>...
>
>
>>I get this error :
>>Record "new" has no field "id_persoon" (#7)
>>
>>
>
>You created it with the column names double quoted so they are really
>mixed case. However, you are accessing it without the double quotes, so
>that the name is folded to lower case. Therefore the names don't match.
>
>
>
>>Also I want to have the name of the person who deleted or changed the
>>record in my BackUp (undo) table...
>>
>>
>
>CURRENT_USER will give you the user id; if that's what you mean.
>
>
>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: Joepie.Platteau@kulak.ac.be, olly@lfix.co.uk
Subject: Re: Trigger set to backup to other table NOT FUNCTIONING...
In-Reply-To: <4146A12F.8070105@kulak.ac.be>
References: <414570D2.9090405@kulak.ac.be> <1095138045.21855.44.camel@linda> <4146A12F.8070105@kulak.ac.be>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox