Re: HI! Problems with cursors into triggers - Mailing list pgsql-sql

From Robert B. Easter
Subject Re: HI! Problems with cursors into triggers
Date
Msg-id 00062815473701.00209@comptechnews
Whole thread Raw
In response to HI! Problems with cursors into triggers  (Andrés Mauricio Marín Restrepo <amarin@alpha.telecom-co.net>)
List pgsql-sql
On Wed, 28 Jun 2000, Andr�s Mauricio Mar�n Restrepo wrote:
> 
> HELLO!
> 
> I'm making one trigger (plpgsql) and in the function i use CURSOR for to
> 
> bring an elements and to take them to a variable but no me it does not
> work, WHY?????????????
> 
> The script is:
> 
> DROP TRIGGER miTrig on otro;
> DROP FUNCTION miFunc();
> DROP TABLE otro;
> DROP TABLE cual;
> 
> CREATE TABLE otro (
>     cuenta    integer;
> );
> 
> CREATE TABLE  cual (
>     cuenta1 integer;
>     cuenta2 integer;
> );
> 
> CREATE FUNCTION miFunc () RETURNS OPAQUE AS '
>    DECLARE
>       Cuenta_t INT4;
>    BEGIN
>       begin work;

Can't have nested transactions. Can't use BEGIN/COMMIT within a trigger.

-- 
Robert B. Easter


pgsql-sql by date:

Previous
From: Thomas Swan
Date:
Subject: Finding the names of inheriting classes
Next
From: "Robert B. Easter"
Date:
Subject: Re: retrieving a serial number