Modify lexing of multi-char operators per pghackers discussion around
Tom Lane <tgl@sss.pgh.pa.us>
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.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/ref/create_operator.sgml | modified | +60 −27 |
| doc/src/sgml/syntax.sgml | modified | +16 −9 |
| src/backend/parser/scan.l | modified | +62 −18 |
| src/bin/psql/mainloop.c | modified | +2 −3 |
| src/interfaces/ecpg/preproc/pgc.l | modified | +71 −24 |