How do I print a message in a function?

From: Wei Weng <wweng(at)kencast(dot)com>
To: pgsql-sql(at)postgresql(dot)org
Subject: How do I print a message in a function?
Date: 2001-07-02 23:46:03
Message-ID: 994117573.6587.5.camel@Monet
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

I did something like

create function test() returns integer as
'
declare
msg varchar;
begin
msg := "test";
RAISE NOTICE "message is " || msg;
end'
language 'plpgsql';

The function compiled without any error, however, when I tried to run it
as select test(); it broke down with an error message " Unterminated " "

Can anyone help me on this?

Thanks!

--
Wei Weng
Network Software Engineer
KenCast Inc.

Responses

Browse pgsql-sql by date

  From Date Subject
Next Message Jie Liang 2001-07-03 00:59:17 Re: How do I print a message in a function?
Previous Message Petarian 2001-07-02 22:54:23 A free ODBC client to use with any database.