Received: from tidal.ipinc.com (tidal.ipinc.com [199.245.188.85]) by postgresql.org (8.11.3/8.11.1) with ESMTP id f6314Sa41564 for ; Mon, 2 Jul 2001 21:04:28 -0400 (EDT) (envelope-from jliang@tidal.ipinc.com) Received: from localhost (jliang@localhost) by tidal.ipinc.com (8.9.3/8.9.3) with ESMTP id RAA53338; Mon, 2 Jul 2001 17:59:17 -0700 (PDT) (envelope-from jliang@tidal.ipinc.com) Date: Mon, 2 Jul 2001 17:59:17 -0700 (PDT) From: Jie Liang To: Wei Weng cc: pgsql-sql@postgresql.org Subject: Re: How do I print a message in a function? In-Reply-To: <994117573.6587.5.camel@Monet> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Archive-Number: 200107/11 X-Sequence-Number: 3792 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 >