From: Michele Bendazzoli <mickymouse@mickymouse.it>
To: Michael Fuhr <mike@fuhr.org>
Cc: pgsql <pgsql-interfaces@postgresql.org>
Subject: Re: plpythonu strange syntax error
Date: Fri, 18 Feb 2005 12:26:00 +0100
Message-ID: <1108725960.4676.18.camel@mickymouse.i.mickymouse.it> (raw)
In-Reply-To: <20050218095623.GA54765@winnie.fuhr.org>
References: <1108719498.4676.14.camel@mickymouse.i.mickymouse.it>
<20050218095623.GA54765@winnie.fuhr.org>
Il giorno ven, 18-02-2005 alle 02:56 -0700, Michael Fuhr ha scritto:
> 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
No, absolutely. I try an retry, but I'm not able to add a second line
without the previsuo error message appears.
Maybe it is related with a PGAdmin III bug?
Thank you,
ciao, Michele
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: mickymouse@mickymouse.it, mike@fuhr.org
Subject: Re: plpythonu strange syntax error
In-Reply-To: <1108725960.4676.18.camel@mickymouse.i.mickymouse.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox