From: Josh Berkus <josh@agliodbs.com>
Cc: sqllist <pgsql-sql@postgresql.org>
Subject: Re: Request for change in PL/PGSQL function handler
Date: Fri, 26 Jan 2001 11:06:05 -0800
Message-ID: <3A71CA9D.6C588E97@agliodbs.com> (raw)
References: <3A71B396.43FB80D@agliodbs.com>
<3462.980535840@sss.pgh.pa.us>
Tom,
> Say what?
>
> regression=# create function foo(int) returns int as '
> regression'# begin
> regression'# if $1 > 10 then return $1;
> regression'# end if;
> regression'# return $1 - 1;
> regression'# end;' language 'plpgsql';
> CREATE
Hmmm? When I've tried creating similar functions, I got from the
compiler:
Error at or near 'END'
I'll try your code above as a test, then try re-modifying some of my own
functions.
-Josh Berkus
--
______AGLIO DATABASE SOLUTIONS___________________________
Josh Berkus
Complete information technology josh@agliodbs.com
and data management solutions (415) 436-9166
for law firms, small businesses fax 436-0137
and non-profit organizations. pager 338-4078
San Francisco
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: josh@agliodbs.com
Subject: Re: Request for change in PL/PGSQL function handler
In-Reply-To: <3A71CA9D.6C588E97@agliodbs.com>
References: <3A71B396.43FB80D@agliodbs.com> <3462.980535840@sss.pgh.pa.us> <3A71CA9D.6C588E97@agliodbs.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox