X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F1BAF9FA425 for ; Wed, 28 Jun 2006 13:16:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 91557-02 for ; Wed, 28 Jun 2006 13:16:32 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 04DC29FA319 for ; Wed, 28 Jun 2006 13:16:31 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k5SGGTtg021801; Wed, 28 Jun 2006 12:16:29 -0400 (EDT) To: KeithW@narrowpathinc.com cc: "PostgreSQL SQL" Subject: Re: "CASE" is not a variable In-reply-to: <20060628154728.M33440@narrowpathinc.com> References: <20060628154728.M33440@narrowpathinc.com> Comments: In-reply-to "Keith Worthington" message dated "Wed, 28 Jun 2006 12:00:20 -0400" Date: Wed, 28 Jun 2006 12:16:29 -0400 Message-ID: <21800.1151511389@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/298 X-Sequence-Number: 25534 "Keith Worthington" writes: > The following is a section of code inside an SQL function. SQL, or plpgsql? It looks to me like misuse of the plpgsql INTO clause (there can be only one). regards, tom lane