Skip to content

Commit adaf601

Browse files
committed
Fix failure to double-quote function argument names when needed, in
pg_get_function_arguments() and related functions. Per report from Andreas Nolte.
1 parent c773ec6 commit adaf601

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/ruleutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.298 2009/05/26 17:36:05 tgl Exp $
12+
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.299 2009/06/09 14:36:06 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -1832,7 +1832,7 @@ print_function_arguments(StringInfo buf, HeapTuple proctup,
18321832
appendStringInfoString(buf, ", ");
18331833
appendStringInfoString(buf, modename);
18341834
if (argname && argname[0])
1835-
appendStringInfo(buf, "%s ", argname);
1835+
appendStringInfo(buf, "%s ", quote_identifier(argname));
18361836
appendStringInfoString(buf, format_type_be(argtype));
18371837
if (print_defaults && isinput && inputargno > nlackdefaults)
18381838
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy