first try at postgres functions - Mailing list pgsql-novice

From Kevin B.
Subject first try at postgres functions
Date
Msg-id 33039.67.87.27.161.1101960180.squirrel@www.ke5in.com
Whole thread Raw
Responses Re: first try at postgres functions
Re: first try at postgres functions
List pgsql-novice
Hi,
I'm not sure why this does not work.

create or replace function test1() returns int as '
 return 1;
' LANGUAGE 'plpgsql';

select  test1();

--------------------------------------------------------

I also tried this:

create or replace function test1() returns int as '
 select 1;
' LANGUAGE 'plpgsql';

select  test1();


pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: catch runtime errors
Next
From: Michael Fuhr
Date:
Subject: Re: first try at postgres functions