Newbie: execute function error!

Поиск
Список
Период
Сортировка
От John GM
Тема Newbie: execute function error!
Дата
Msg-id 981uer$1vu3$1@news.tht.net
обсуждение исходный текст
Ответы Re: Newbie: execute function error!  (dev@archonet.com)
Список pgsql-sql
I created a sample function:

CREATE FUNCTION concat_text (text, text) RETURNS text AS '
BEGIN   RETURN $1 || $2;
END; '
LANGUAGE 'plpgsql';


The creation was fine.  But when I execute the function with : select
concat('a', 'b');

I get the error:

NOTICE:  plpgsql: ERROR during compile of concat_text near line 1
"RROR:  parse error at or near "

What did I do wrong?

Thanks!




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

Предыдущее
От: Thomas Lockhart
Дата:
Сообщение: Re: No Documentation for to_char(INTERVAL, mask)
Следующее
От: Michelle Murrain
Дата:
Сообщение: Re: [GENERAL] Re: MySQLs Describe emulator!