abs() does not exists..

From: "mazzo" <jambo(at)aruba(dot)it>
To: <pgsql-general(at)postgresql(dot)org>
Subject: abs() does not exists..
Date: 2001-06-12 20:20:52
Message-ID: 001901c0f37d$30bb0b80$0200a8c0@pcsilvia
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi all..i'm trying to create a trigger that fires before i insert a value into a column and if the value i insert is negative, it will change it to positive...
I was trying with:

create trigger postv before insert on my_table for each row execute procedure abs (column);

But this doesn't seem to work and gives me the error i wrote in the subject...

Can anyone help me out please..??
Sorry if i post here but i looked on deja.com but i didn't find anything..

Thanks in advance..

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tim Barnard 2001-06-12 20:22:57 Re: libpq++ PgDatabase and PgConnection
Previous Message Tom Lane 2001-06-12 20:20:12 Re: Re: very big problem with NULL