Re: Function won't compile

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Function won't compile
Дата
Msg-id 26864.1003967426@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Function won't compile  (Stephan Szabo <sszabo@megazone23.bigpanda.com>)
Список pgsql-general
> On Wed, 24 Oct 2001, Joop van Bussel wrote:
>> CREATE FUNCTION insert_case () RETURNS INTEGER AS '
>> BEGIN
>> NEW.date_created := ''now'';
>> END;
>> ' LANGUAGE 'SQL';
     ^^^^^^^^^^^^^^

Looks like plpgsql, not sql, to me.  It's got some other problems too:
no RETURN statement, and it should be declared to return opaque not
integer (though I'm unsure if the system will enforce that).

            regards, tom lane

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

Предыдущее
От: "Dr. Evil"
Дата:
Сообщение: Re: Disable Transaction - plans ?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Disable Transaction - plans ?