pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
"pltcl" function.
2+ messages / 2 participants
[nested] [flat]

* "pltcl" function.
@ 2005-04-18 06:31 Dinesh Pandey <dpandey@secf.com>
  2005-04-19 04:50 ` Re: "pltcl" function. Michael Fuhr <mike@fuhr.org>
  0 siblings, 1 reply; 2+ messages in thread

From: Dinesh Pandey @ 2005-04-18 06:31 UTC (permalink / raw)
  To: pgsql-general@postgresql.org; pgsql-sql

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



 

^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: "pltcl" function.
  2005-04-18 06:31 "pltcl" function. Dinesh Pandey <dpandey@secf.com>
@ 2005-04-19 04:50 ` Michael Fuhr <mike@fuhr.org>
  0 siblings, 0 replies; 2+ messages in thread

From: Michael Fuhr @ 2005-04-19 04:50 UTC (permalink / raw)
  To: Dinesh Pandey <dpandey@secf.com>; +Cc: pgsql-general@postgresql.org

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/



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2005-04-19 04:50 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-04-18 06:31 "pltcl" function. Dinesh Pandey <dpandey@secf.com>
2005-04-19 04:50 ` Michael Fuhr <mike@fuhr.org>

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