mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
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.
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.325 2010/02/26 02:01:09 momjian Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.326 2010/05/30 18:10:41 tgl Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -4537,8 +4537,8 @@ get_rule_expr(Node *node, deparse_context *context,
|
||||
{
|
||||
NamedArgExpr *na = (NamedArgExpr *) node;
|
||||
|
||||
appendStringInfo(buf, "%s := ", quote_identifier(na->name));
|
||||
get_rule_expr((Node *) na->arg, context, showimplicit);
|
||||
appendStringInfo(buf, " AS %s", quote_identifier(na->name));
|
||||
}
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user