X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 8E6C452D93 for ; Tue, 19 Apr 2005 01:50:39 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 38213-02 for ; Tue, 19 Apr 2005 04:50:21 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 09D5F53344 for ; Tue, 19 Apr 2005 01:50:20 -0300 (ADT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.3/8.13.3) with ESMTP id j3J4oHYM030332 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 18 Apr 2005 22:50:20 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.3/8.13.3) with ESMTP id j3J4oHx2076360; Mon, 18 Apr 2005 22:50:17 -0600 (MDT) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.3/8.13.3/Submit) id j3J4oHSo076359; Mon, 18 Apr 2005 22:50:17 -0600 (MDT) (envelope-from mfuhr) Date: Mon, 18 Apr 2005 22:50:17 -0600 From: Michael Fuhr To: Dinesh Pandey Cc: pgsql-general@postgresql.org Subject: Re: "pltcl" function. Message-ID: <20050419045017.GB76187@winnie.fuhr.org> References: <20050418063520.D9018538C1@svr1.postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050418063520.D9018538C1@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.004 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200504/770 X-Sequence-Number: 76683 On Mon, Apr 18, 2005 at 12:01:58PM +0530, Dinesh Pandey wrote: > > What is error in this statement of "pltcl" function. > > set var 'SENDING EMAIL TO: '||$mailto||' from: '||$mailfrom||' with: > '||$emailserver > > I am getting this error: > > ERROR: wrong # args: should be "set varName ?newValue?" You're mixing languages: you're using the SQL concatenation operator (||) in a Tcl function. See a Tcl reference for the details of Tcl syntax. The following should work: set var "SENDING EMAIL TO: $mailto from: $mailfrom with: $emailserver" -- Michael Fuhr http://www.fuhr.org/~mfuhr/