pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: mkz@pgfoundry.org
To: pgsql-committers@postgresql.org
Subject: plproxy - plproxy: Make scanner accept dot as standalone symbol
Date: Mon, 29 Jun 2009 13:37:58 +0000 (UTC)
Message-ID: <20090629133758.48FA21072079@pgfoundry.org> (raw)

Log Message:
-----------
Make scanner accept dot as standalone symbol

Currently PL/Proxy fails to parse following query:

  select (ret_numtuple(1)).num, (ret_numtuple(1)).name;

The fix is to add "." to the SQLSYM rule in the lexer.  This should be OK
because an identifier chain will always be longer than a single dot, so flex
will prefer it over parsing the single dot.

Patch by Peter Eisentraut

Modified Files:
--------------
    plproxy/expected:
        plproxy_select.out (r1.3 -> r1.4)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/expected/plproxy_select.out?r1=1.3&r...)
    plproxy/sql:
        plproxy_select.sql (r1.2 -> r1.3)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/sql/plproxy_select.sql?r1=1.2&r2=1.3)
    plproxy/src:
        scanner.l (r1.14 -> r1.15)
        (http://cvs.pgfoundry.org/cgi-bin/cvsweb.cgi/plproxy/plproxy/src/scanner.l?r1=1.14&r2=1.15)




view thread (2+ messages)  latest in thread

Message-ID: <20090629133758.48FA21072079@pgfoundry.org>
Permalink:  ../20090629133758.48FA21072079@pgfoundry.org/
Also on:    postgresql.org/message-id/20090629133758.48FA21072079@pgfoundry.org

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-committers@postgresql.org
  Cc: mkz@pgfoundry.org
  Subject: Re: plproxy - plproxy: Make scanner accept dot as standalone symbol
  In-Reply-To: <20090629133758.48FA21072079@pgfoundry.org>

* 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