Re: [HACKERS] create function bug?

From: Tom <tom(at)sdf(dot)com>
To: Ewan Mellor <em(at)nexus(dot)co(dot)uk>
Cc: pgsql-hackers(at)hub(dot)org
Subject: Re: [HACKERS] create function bug?
Date: 1998-02-05 21:48:10
Message-ID: Pine.BSF.3.95q.980205134702.4000A-100000@misery.sdf.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers


On Thu, 5 Feb 1998, Ewan Mellor wrote:

> test=> create function myfunc (integer) returns integer
> test-> as 'select $1' language 'sql';

On most PLs that I used, you need to specify a variable name for the
param, after all, how are you going to refer to it?

Try:

create function myfunc (myint integer) returns integer
as 'select $1' language 'sql';

Tom

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message PostgreSQL 1998-02-05 22:01:34 Bug with char() type
Previous Message Brett McCormick 1998-02-05 21:14:30 Re: [HACKERS] create function bug?