Re: Newbie ...Function error (Stored Procedure)?

Поиск
Список
Период
Сортировка
От Arne Weiner
Тема Re: Newbie ...Function error (Stored Procedure)?
Дата
Msg-id 3B8ABF2F.72D1A1B3@gmx.de
обсуждение исходный текст
Список pgsql-general
You have to escape the ' inside of your function definition:

CREATE FUNCTION testid()
RETURNS INTEGER
AS 'SELECT nextval(\'seq1\');'
LANGUAGE 'SQL';

The quotationmark in front of seq1 terminated the literal string that
should contain your
SQL statement and the parser was confused to find an 's' behind the
literal string.

Arne.

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