From dpandey@secf.com Mon Apr 18 06:35:24 2005 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 DAC2853360; Mon, 18 Apr 2005 03:35:24 -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 81509-04; Mon, 18 Apr 2005 06:35:21 +0000 (GMT) Received: from secf.com (209-128-104-244.BAYAREA.NET [209.128.104.244]) by svr1.postgresql.org (Postfix) with ESMTP id D9018538C1; Mon, 18 Apr 2005 03:35:20 -0300 (ADT) Received: from dinesh by secf.com (MDaemon.PRO.v7.2.2.R) with ESMTP id md50000651667.msg; Sun, 17 Apr 2005 23:35:27 -0700 Reply-To: From: "Dinesh Pandey" To: , "'PostgreSQL'" Subject: "pltcl" function. Date: Mon, 18 Apr 2005 12:01:58 +0530 Organization: Second Foundation India P Ltd. MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01C5440E.747D5950" X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Thread-Index: AcVD4FJqCBgOsRtfR8ivmEF+TAVfxQ== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Authenticated-Sender: dpandey@secf.com X-Spam-Processed: mail.secf.com, Sun, 17 Apr 2005 23:35:27 -0700 (not processed: message from valid local sender) X-MDRemoteIP: 220.227.32.11 X-Return-Path: dpandey@secf.com X-MDAV-Processed: mail.secf.com, Sun, 17 Apr 2005 23:35:28 -0700 Message-Id: <20050418063520.D9018538C1@svr1.postgresql.org> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.386 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, HTML_MESSAGE, MSGID_FROM_MTA_ID X-Spam-Level: * X-Archive-Number: 200504/702 X-Sequence-Number: 76615 This is a multi-part message in MIME format. ------=_NextPart_000_0004_01C5440E.747D5950 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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?" Regards Dinesh Pandey ------=_NextPart_000_0004_01C5440E.747D5950 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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?"

Regards
Dinesh Pandey


 

------=_NextPart_000_0004_01C5440E.747D5950-- From mike@fuhr.org Tue Apr 19 04:50:39 2005 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/