* format_function_arguments: generate function name and argument list * * This is used when we can rely on pg_get_function_arguments to format * the argument list. Note, however, that pg_get_function_arguments * does not special-case zero-argument aggregates. */
| 13125 | * does not special-case zero-argument aggregates. |
| 13126 | */ |
| 13127 | static char * |
| 13128 | format_function_arguments(const FuncInfo *finfo, const char *funcargs, bool is_agg) |
| 13129 | { |
| 13130 | PQExpBufferData fn; |
| 13131 | |
| 13132 | initPQExpBuffer(&fn); |
| 13133 | appendPQExpBufferStr(&fn, fmtId(finfo->dobj.name)); |
| 13134 | if (is_agg && finfo->nargs == 0) |
| 13135 | appendPQExpBufferStr(&fn, "(*)"); |
| 13136 | else |
| 13137 | appendPQExpBuffer(&fn, "(%s)", funcargs); |
| 13138 | return fn.data; |
| 13139 | } |
| 13140 | |
| 13141 | /* |
| 13142 | * format_function_arguments_old: generate function name and argument list |
no test coverage detected