Re: plpythonu strange syntax error

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: plpythonu strange syntax error
Дата
Msg-id 20050218095623.GA54765@winnie.fuhr.org
обсуждение исходный текст
Ответ на plpythonu strange syntax error  (Michele Bendazzoli <mickymouse@mickymouse.it>)
Ответы Re: plpythonu strange syntax error  (Michele Bendazzoli <mickymouse@mickymouse.it>)
Список pgsql-interfaces
On Fri, Feb 18, 2005 at 10:38:17AM +0100, Michele Bendazzoli wrote:

> I try to create a trivial (for testing purpouse) function with the
> plpythonu language in postgresql 8.0 but when I try to utilize it the
> postgres refuse to compile it for a sintax error:
> 'ERROR: plpython: could not compile function ''myfunc''
> DETAIL: exceptions.SyntaxError: invalid syntax (line 2)'

Does the string that contains the Python code have carriage returns?
Python is picky about that; there was a thread about it recently.

http://archives.postgresql.org/pgsql-general/2005-01/msg00792.php

-- 
Michael Fuhr
http://www.fuhr.org/~mfuhr/


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

Предыдущее
От: Michele Bendazzoli
Дата:
Сообщение: plpythonu strange syntax error
Следующее
От: Michele Bendazzoli
Дата:
Сообщение: Re: plpythonu strange syntax error