tip: weird parse error for pl/pgsql - Mailing list pgsql-sql

From Keith Wong
Subject tip: weird parse error for pl/pgsql
Date
Msg-id 4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au
Whole thread Raw
In response to using INTERSECT and UNION in IN clause  (Alex Guryanow <gav@nlr.ru>)
Responses Re: tip: weird parse error for pl/pgsql  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-sql
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.



pgsql-sql by date:

Previous
From: Alex Guryanow
Date:
Subject: using INTERSECT and UNION in IN clause
Next
From: "Brian C. Doyle"
Date:
Subject: Time Help