Change the notation for calling functions with named parameters from
Tom Lane <tgl@sss.pgh.pa.us>
Change the notation for calling functions with named parameters from "val AS name" to "name := val", as per recent discussion. This patch catches everything in the original named-parameters patch, but I'm not certain that no other dependencies snuck in later (grepping the source tree for all uses of AS soon proved unworkable). In passing I note that we've dropped the ball at least once on keeping ecpg's lexer (as opposed to parser) in sync with the backend. It would be a good idea to go through all of pgc.l and see if it's in sync now. I didn't attempt that at the moment.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/syntax.sgml | modified | +8 −7 |
| doc/src/sgml/xfunc.sgml | modified | +4 −4 |
| src/backend/parser/gram.y | modified | +8 −8 |
| src/backend/parser/parse_func.c | modified | +3 −3 |
| src/backend/parser/scan.l | modified | +1 −3 |
| src/backend/utils/adt/ruleutils.c | modified | +2 −2 |
| src/bin/psql/psqlscan.l | modified | +1 −3 |
| src/interfaces/ecpg/preproc/parse.pl | modified | +3 −1 |
| src/interfaces/ecpg/preproc/pgc.l | modified | +5 −1 |
| src/test/regress/expected/polymorphism.out | modified | +41 −41 |
| src/test/regress/sql/polymorphism.sql | modified | +29 −29 |