mirror of
https://github.com/postgres/postgres.git
synced 2025-06-02 00:01:40 -04:00
Fix failure to double-quote function argument names when needed, in
pg_get_function_arguments() and related functions. Per report from Andreas Nolte.
This commit is contained in:
parent
c773ec6b15
commit
adaf60131f
@ -9,7 +9,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.298 2009/05/26 17:36:05 tgl Exp $
|
* $PostgreSQL: pgsql/src/backend/utils/adt/ruleutils.c,v 1.299 2009/06/09 14:36:06 tgl Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -1832,7 +1832,7 @@ print_function_arguments(StringInfo buf, HeapTuple proctup,
|
|||||||
appendStringInfoString(buf, ", ");
|
appendStringInfoString(buf, ", ");
|
||||||
appendStringInfoString(buf, modename);
|
appendStringInfoString(buf, modename);
|
||||||
if (argname && argname[0])
|
if (argname && argname[0])
|
||||||
appendStringInfo(buf, "%s ", argname);
|
appendStringInfo(buf, "%s ", quote_identifier(argname));
|
||||||
appendStringInfoString(buf, format_type_be(argtype));
|
appendStringInfoString(buf, format_type_be(argtype));
|
||||||
if (print_defaults && isinput && inputargno > nlackdefaults)
|
if (print_defaults && isinput && inputargno > nlackdefaults)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user