Skip site navigation (1) Skip section navigation (2)

Re: create function

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Pam Withnall <Pamw(at)zoom(dot)com(dot)au>
Cc: "'pgsql-hackers(at)postgresql(dot)org'" <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: create function
Date: 2000-11-02 08:50:34
Message-ID: 24709.973155034@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Pam Withnall <Pamw(at)zoom(dot)com(dot)au> writes:
> When i call the function from sql
> SELECT sptest3(4) AS x;
> I get the error:

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

The message looks just like that, eh?  I bet it's unhappy because your
function text contains DOS-style newlines (\r\n) not Unix-style (\n).

7.1 plpgsql will accept \r as whitespace, but current releases don't.
In the meantime, save your script in a not-so-Microsoft-oriented editor.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Tom LaneDate: 2000-11-02 09:10:25
Subject: Re: Contexts
Previous:From: Zeugswetter Andreas SBDate: 2000-11-02 08:35:29
Subject: AW: Re: [GENERAL] Query caching

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group