Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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.


pgsql-committers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group