Received: from smtp010.mail.yahoo.com (smtp010.mail.yahoo.com [216.136.173.30]) by postgresql.org (8.11.3/8.11.1) with SMTP id f6UEItf44735 for ; Mon, 30 Jul 2001 10:18:55 -0400 (EDT) (envelope-from janwieck@yahoo.com) Received: from jupiter.us.greatbridge.com (65.196.69.55) by smtp.mail.vip.sc5.yahoo.com with SMTP; 30 Jul 2001 14:18:51 -0000 X-Apparently-From: Received: (from wieck@localhost) by jupiter.us.greatbridge.com (8.11.2/8.11.2) id f6UEQpM06972; Mon, 30 Jul 2001 10:26:51 -0400 From: Jan Wieck Message-Id: <200107301426.f6UEQpM06972@jupiter.us.greatbridge.com> Subject: Re: Re: Inserts in triggers Follow Up In-Reply-To: <4.3.2.7.2.20010725085946.023e24a8@e4media.com> from Morgan Curley at "Jul 25, 2001 09:09:54 am" To: Morgan Curley Date: Mon, 30 Jul 2001 10:26:51 -0400 (EDT) CC: pgsql-general@postgresql.org, pgsql-sql@postgresql.org X-Mailer: ELM [version 2.4ME+ PL68 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Archive-Number: 200107/1023 X-Sequence-Number: 13143 Morgan Curley wrote: > Well, I couldn't figure out why my INSERT INTO wasn't working so I went > with using EXECUTE and concat'ing everything together. The problem was that your local variable names where identical to column names used in the tables. That confuses the PL/pgSQL query engine. Tom pointed that out already, maybe not clear enough. Jan -- #======================================================================# # It's easier to get forgiveness for being wrong than for being right. # # Let's break this rule - forgive me. # #================================================== JanWieck@Yahoo.com # _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com