X-Original-To: pgsql-interfaces-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F06578B9FBB for ; Fri, 18 Feb 2005 11:13:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 67928-04 for ; Fri, 18 Feb 2005 11:13:40 +0000 (GMT) Received: from mickymouse.i.mickymouse.it (host70-151.pool80183.interbusiness.it [80.183.151.70]) by svr1.postgresql.org (Postfix) with ESMTP id A765A8B9EFC for ; Fri, 18 Feb 2005 11:13:38 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by mickymouse.i.mickymouse.it (Postfix) with ESMTP id 027C13400088; Fri, 18 Feb 2005 12:26:00 +0100 (CET) Subject: Re: plpythonu strange syntax error From: Michele Bendazzoli To: Michael Fuhr Cc: pgsql In-Reply-To: <20050218095623.GA54765@winnie.fuhr.org> References: <1108719498.4676.14.camel@mickymouse.i.mickymouse.it> <20050218095623.GA54765@winnie.fuhr.org> Content-Type: text/plain Date: Fri, 18 Feb 2005 12:26:00 +0100 Message-Id: <1108725960.4676.18.camel@mickymouse.i.mickymouse.it> Mime-Version: 1.0 X-Mailer: Evolution 2.0.3 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=1.647 tagged_above=0 required=5 tests=AWL, FORGED_RCVD_HELO, RCVD_IN_NJABL_DUL, RCVD_IN_SORBS_DUL X-Spam-Level: * X-Archive-Number: 200502/66 X-Sequence-Number: 5311 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