From: | tolik(at)icomm(dot)ru (Anatoly K(dot) Lasareff) |
---|---|
To: | Greg Youngblood <YoungblG(at)houstoncellular(dot)com> |
Cc: | "'PostgreSQL General List'" <pgsql-general(at)postgreSQL(dot)org> |
Subject: | Re: [GENERAL] Triggers and sql functions not working... |
Date: | 1999-01-05 09:15:43 |
Message-ID: | 87u2y6cc74.fsf@tolikus.hq.aaanet.ru |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
>>>>> "GY" == Greg Youngblood <YoungblG(at)houstoncellular(dot)com> writes:
. . .
GY> create function update_tab2 () returns int4 as 'insert into tab2 (l,a,g)
GY> select distinct a.l,b.a,b.c from tab2 a,tab1 b where b.a not in (select
GY> distinct a from tab2); select 1 as exitvalue;' language 'sql';
. . .
GY> create trigger new_tab1_a after insert on tab1 for each row execute
GY> procedure update_tab2 ();
GY> generates:
GY> ERROR: CreateTrigger: function update_tab2 () does not exist.
Function for triggers must have signature 'xxx() returns opaque', but
not '... returns int'. Pehaps this is your mistake?
--
Anatoly K. Lasareff Email: tolik(at)icomm(dot)ru
Senior programmer
From | Date | Subject | |
---|---|---|---|
Next Message | Holger Klawitter | 1999-01-05 10:17:08 | String Concatenation does not work. |
Previous Message | Blashko Alexander | 1999-01-05 08:10:07 | Re: pg_options ? |