pg.ddx.io pgsql-sql@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: josh@agliodbs.com
Cc: pgsql-sql@postgresql.org
Subject: Re: Delete/Replace Bug in Functions?
Date: Mon, 21 Oct 2002 18:44:11 -0400
Message-ID: <9894.1035240251@sss.pgh.pa.us> (raw)
In-Reply-To: <200210211531.19436.josh@agliodbs.com>
References: <200210211531.19436.josh@agliodbs.com>
Josh Berkus <josh@agliodbs.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
view thread (3+ messages) latest in thread
Message-ID: <9894.1035240251@sss.pgh.pa.us> Permalink: ../9894.1035240251@sss.pgh.pa.us/ Also on: postgresql.org/message-id/9894.1035240251@sss.pgh.pa.us ·
reply
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Reply to all the recipients using the --to and --cc options: reply via email To: pgsql-sql@postgresql.org Cc: tgl@sss.pgh.pa.us, josh@agliodbs.com Subject: Re: Delete/Replace Bug in Functions? In-Reply-To: <9894.1035240251@sss.pgh.pa.us> * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox