Re: Delete/Replace Bug in Functions?

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: josh(at)agliodbs(dot)com
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: Delete/Replace Bug in Functions?
Date: 2002-10-21 22:44:11
Message-ID: 9894.1035240251@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Josh Berkus <josh(at)agliodbs(dot)com> writes:
> ones. Here's the relevant code:
> IF v_usq > 0 THEN -- Note: v_usq is > 0 for all existing records
> DELETE FROM order_spec WHERE order_usq = v_usq;
> END IF;
> ...
> INSERT INTO order_spec ( job_type, order_usq, no_needed, start_time,
> end_time, pay_rate, bill_rate )
> VALUES ( current_type, new_usq, numbers[spec_loop], sttimes[spec_loop],
> endtimes[spec_loop],
> pays[spec_loop], bills[spec_loop] );

Um, might v_usq be different from new_usq?

regards, tom lane

In response to

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Josh Berkus 2002-10-21 22:50:23 Re: Delete/Replace Bug in Functions?
Previous Message Josh Berkus 2002-10-21 22:31:19 Delete/Replace Bug in Functions?