Old/New

From: "Bob Pawley" <rjpawley(at)shaw(dot)ca>
To: "Postgresql" <pgsql-general(at)postgresql(dot)org>
Subject: Old/New
Date: 2010-01-21 23:08:39
Message-ID: A7B0FFC861FD4380A747C656E9012E77@desktop
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi

I am getting a strange result when using the following -

Select fluid_id into fluidid
from p_id.processes
where new.pump1 = 'True'
and old.pump1 = 'False'
or old.pump1 is null;

The fluid_id return is fine when there is a single row. However with two rows, and updating only one of the rows, I quite often get the fluid_id for the other row.

I am using an After Update trigger.

Bob

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2010-01-21 23:16:00 Re: Old/New
Previous Message Kynn Jones 2010-01-21 21:53:44 Re: ISO guidelines/strategies to guard injection attacks