Re: How do I print a message in a function? - Mailing list pgsql-sql

From Jie Liang
Subject Re: How do I print a message in a function?
Date
Msg-id Pine.BSF.4.10.10107021756020.44266-100000@tidal.ipinc.com
Whole thread Raw
In response to How do I print a message in a function?  (Wei Weng <wweng@kencast.com>)
List pgsql-sql
You have to use two single quota

Jie LIANG

St. Bernard Software

10350 Science Center Drive
Suite 100, San Diego, CA 92121
Office:(858)320-4873

jliang@ipinc.com
www.stbernard.com
www.ipinc.com

On 2 Jul 2001, Wei Weng wrote:

> I did something like
> 

try this


> 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.
> 
> 
> 
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
> 



pgsql-sql by date:

Previous
From: Wei Weng
Date:
Subject: How do I print a message in a function?
Next
From: Markus Wagner
Date:
Subject: traversing foreign key relationships between tables