aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/ruleutils.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2010-05-30 18:10:41 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2010-05-30 18:10:41 +0000
commitb12b7a9038259967098159cf0ccce0e77327a4d1 (patch)
treee6ff349cfd79edf3d06a76fac70c247a56e997cb /src/backend/utils/adt/ruleutils.c
parent2bde07c198a4995a4a756c58ee65d030a0e6ee02 (diff)
downloadpostgresql-b12b7a9038259967098159cf0ccce0e77327a4d1.tar.gz
postgresql-b12b7a9038259967098159cf0ccce0e77327a4d1.zip
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.
Diffstat (limited to 'src/backend/utils/adt/ruleutils.c')
-rw-r--r--src/backend/utils/adt/ruleutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c
index 316562537be..54b6018d8e4 100644
--- a/src/backend/utils/adt/ruleutils.c
+++ b/src/backend/utils/adt/ruleutils.c
@@ -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;