Re: Request for change in PL/PGSQL function handler

Поиск
Список
Период
Сортировка
От Josh Berkus
Тема Re: Request for change in PL/PGSQL function handler
Дата
Msg-id 3A71CA9D.6C588E97@agliodbs.com
обсуждение исходный текст
Ответ на Request for change in PL/PGSQL function handler  (Josh Berkus <josh@agliodbs.com>)
Список 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
informationtechnology      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


В списке pgsql-sql по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Request for change in PL/PGSQL function handler
Следующее
От: "Glen and Rosanne Eustace"
Дата:
Сообщение: Re: Re: Problem with Dates