Trouble with PL/pgSQL

Поиск
Список
Период
Сортировка
От Kevin Willems
Тема Trouble with PL/pgSQL
Дата
Msg-id fasy6.1534$Tfq.12910695@tomcat.sk.sympatico.ca
обсуждение исходный текст
Ответы Re: Trouble with PL/pgSQL  (Joel Burton <jburton@scw.org>)
Список pgsql-general
I wrote the following test function:

CREATE FUNCTION tester(text)
RETURNS text
AS 'DECLARE
   str text;
BEGIN
   str := upper($1);
   RETURN str;
END;'
LANGUAGE'plpgsql'

This runs OK. However, when I go to use it as follows:

SELECT tester('sometext');

I get the error:

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

Does anyone know why this is happening? Any help would really be
appreciated.

- Kevin Willems



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

Предыдущее
От: "mike"
Дата:
Сообщение: reindexing sequences
Следующее
От: Sven Fischer
Дата:
Сообщение: Re: Almost all access to database hangs (fwd)