pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Keith Wong <keith@e-magine.com.au>
To: pgsql-sql@postgresql.org
Subject: tip: weird parse error for pl/pgsql
Date: Tue, 22 Aug 2000 21:16:23 +1000
Message-ID: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au> (raw)
In-Reply-To: <6585.000822@nlr.ru>

Hi everyone,

After fiddling for about a day to work out why my pl/pgsql stored 
procedures weren't working I finally
discovered why. It seems that pl/pgsql has a problem parsing Window style 
new line characters. I
was writing my stored procedures using a Windows app, and then running them 
on my Linux
Postgres database. It keeped on giving me...
an error found one line 1 near " "
which wasn't very helpful.

Anyway just make sure you write your stored procs in your Unix environment 
or save them as Unix
format. I hope this tip saves somebody some time. :)

Cheers,
Keith.




view thread (2+ messages)  latest in thread

Message-ID: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au>
Permalink:  ../4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au/
Also on:    postgresql.org/message-id/4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au

 · 

reply

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-sql@postgresql.org
  Cc: keith@e-magine.com.au
  Subject: Re: tip: weird parse error for pl/pgsql
  In-Reply-To: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au>
  References: <6585.000822@nlr.ru> <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au>

* 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