pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Keith Wong <keith@e-magine.com.au>
Cc: pgsql-sql@postgresql.org
Subject: Re: tip: weird parse error for pl/pgsql
Date: Tue, 22 Aug 2000 11:03:53 -0400
Message-ID: <6812.966956633@sss.pgh.pa.us> (raw)
In-Reply-To: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au>
References: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au>

Keith Wong <keith@e-magine.com.au> writes:
> It seems that pl/pgsql has a problem parsing Window style 
> new line characters.

Ah-hah, good catch!  I have fixed this bug for 7.1.  If you want to
patch your local copy, the critical changes are:


inline patch 1: src/pl/plpgsql/src/scan.l (+2/-2 lines) download inline-1.patch*** src/pl/plpgsql/src/scan.l.orig Thu Jun 22 19:08:34 2000 --- src/pl/plpgsql/src/scan.l Tue Aug 22 10:59:28 2000 *************** *** 143,155 **** * Ignore whitespaces but remember this happened * ---------- */ ! [ \t\n]+ { plpgsql_SpaceScanned = 1; } /* ---------- * Eat up comments * ---------- */ ! --[^\n]* ; \/\* { start_lineno = yylineno; BEGIN IN_COMMENT; } --- 146,158 ---- * Ignore whitespaces but remember this happened * ---------- */ ! [ \t\r\n]+ { plpgsql_SpaceScanned = 1; } /* ---------- * Eat up comments * ---------- */ ! --[^\r\n]* ; \/\* { start_lineno = yylineno; BEGIN IN_COMMENT; }
regards, tom lane

view thread (2+ messages)

Message-ID: <6812.966956633@sss.pgh.pa.us>
Permalink:  ../6812.966956633@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/6812.966956633@sss.pgh.pa.us

 ·  · 

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: tgl@sss.pgh.pa.us, keith@e-magine.com.au
  Subject: Re: tip: weird parse error for pl/pgsql
  In-Reply-To: <6812.966956633@sss.pgh.pa.us>
  References: <4.3.2.7.0.20000822205039.00b11e90@mail.e-magine.com.au> <6812.966956633@sss.pgh.pa.us>

* 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