pgsql/src/backend/parser gram.y

From: Tom Lane <tgl(at)hub(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql/src/backend/parser gram.y
Date: 2001-01-23 22:39:09
Message-ID: 200101232239.f0NMd9547441@hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

CVSROOT: /home/projects/pgsql/cvsroot
Module name: pgsql
Changes by: tgl(at)hub(dot)org 01/01/23 17:39:09

Modified files:
src/backend/parser: gram.y

Log message:
Give 'a_expr ::= a_expr Op' production a slightly lower precedence than
Op, so that the sequence 'a_expr Op Op a_expr' will be parsed as
a_expr Op (Op a_expr) not (a_expr Op) Op a_expr as formerly. In other
words, prefer treating user-defined operators as prefix operators to
treating them as postfix operators, when there is an ambiguity.
Also clean up a couple of other infelicities in production priority
assignment --- for example, BETWEEN wasn't being given the intended
priority, but that of AND.

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut - PostgreSQL 2001-01-23 22:46:14 pgsql/src/bin/psql startup.c
Previous Message Bruce Momjian - CVS 2001-01-23 20:36:31 pgsql/src/interfaces/odbc info.c pgtypes.c