From: Tom Lane Date: Tue, 9 Jun 2009 14:36:06 +0000 (+0000) Subject: Fix failure to double-quote function argument names when needed, in X-Git-Url: http://git.postgresql.org/gitweb/static/session/index.html?a=commitdiff_plain;h=df44859a1dde8e8351dbf06e9b3ea9338d63f6ef;p=users%2Fsimon%2Fpostgres.git Fix failure to double-quote function argument names when needed, in pg_get_function_arguments() and related functions. Per report from Andreas Nolte. --- diff --git a/src/backend/utils/adt/ruleutils.c b/src/backend/utils/adt/ruleutils.c index b16a425daa..db2182fd90 100644 --- a/src/backend/utils/adt/ruleutils.c +++ b/src/backend/utils/adt/ruleutils.c @@ -1832,7 +1832,7 @@ print_function_arguments(StringInfo buf, HeapTuple proctup, appendStringInfoString(buf, ", "); appendStringInfoString(buf, modename); if (argname && argname[0]) - appendStringInfo(buf, "%s ", argname); + appendStringInfo(buf, "%s ", quote_identifier(argname)); appendStringInfoString(buf, format_type_be(argtype)); if (print_defaults && isinput && inputargno > nlackdefaults) {