Re: Request for change in PL/PGSQL function handler

From: Josh Berkus <josh(at)agliodbs(dot)com>
To:
Cc: sqllist <pgsql-sql(at)postgresql(dot)org>
Subject: Re: Request for change in PL/PGSQL function handler
Date: 2001-01-26 19:06:05
Message-ID: 3A71CA9D.6C588E97@agliodbs.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

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(at)agliodbs(dot)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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Mark A. Summers 2001-01-26 19:11:45 SQL Help
Previous Message Jan Wieck 2001-01-26 19:05:30