Re: Old/New - Mailing list pgsql-general

From Adrian Klaver
Subject Re: Old/New
Date
Msg-id 201001221519.15529.adrian.klaver@gmail.com
Whole thread Raw
In response to Re: Old/New  ("Bob Pawley" <rjpawley@shaw.ca>)
List pgsql-general
On Friday 22 January 2010 3:05:54 pm Bob Pawley wrote:
> This is the whole trigger
>
>
>
>  Begin
>
>  If new.pump1 = 'True'
>
>  then
>
>  Insert into p_id.devices (p_id_id, process_id, fluid_id, status,
> process_graphics_id, device_description)
>  values (new.p_id_id, new.process_id, new.fluid_id, 'Pump #1', '11',
> 'Pump');
>
>  End if;
>
>  If new.pump2 = 'True'
>
>  then
>
>  Insert into p_id.devices (p_id_id, process_id, fluid_id, status,
> process_graphics_id, device_description)
>  values (new.p_id_id, new.process_id, new.fluid_id, 'Pump #2', '11',
> 'Pump');
>
>  End if ;
>
>  RETURN NULL;
>
>  END;
>
> Bob

The update statement -
update p_id.processes
   set pump1 = 'True'
   where p_id.processes.fluid_id = '3501' ;
updates the field pump1 to 'True'.

Is there more than one row in p_id.processes with p_id.processes.fluid_id
= '3501' ?



--
Adrian Klaver
adrian.klaver@gmail.com

pgsql-general by date:

Previous
From: "Bob Pawley"
Date:
Subject: Re: Old/New
Next
From: "Bob Pawley"
Date:
Subject: Re: Old/New