Modify lexing of multi-char operators per pghackers discussion around
authorTom Lane
Sat, 18 Mar 2000 18:03:12 +0000 (18:03 +0000)
committerTom Lane
Sat, 18 Mar 2000 18:03:12 +0000 (18:03 +0000)
commitf945f46193690841315b79f5961d3721c73621d9
tree7ba6210215a7ca7fbf6dc6f13f3903db0bd45af8
parent2b23e864470fcd7ea29de7d96ff77ab969cf5b1c
Modify lexing of multi-char operators per pghackers discussion around
16-Mar-00: trailing + or - is not part of the operator unless the operator
also contains characters not present in SQL92-defined operators.  This
solves the 'X=-Y' problem without unduly constraining users' choice of
operator names --- in particular, no existing Postgres operator names
become invalid.

Also, remove processing of // comments, as agreed in the same thread.
doc/src/sgml/ref/create_operator.sgml
doc/src/sgml/syntax.sgml
src/backend/parser/scan.l
src/bin/psql/mainloop.c
src/interfaces/ecpg/preproc/pgc.l