MCPcopy Create free account
hub / github.com/apache/cloudberry / op_signature_string

Function op_signature_string

src/backend/parser/parse_oper.c:613–628  ·  view source on GitHub ↗

* op_signature_string * Build a string representing an operator name, including arg type(s). * The result is something like "integer + integer". * * This is typically used in the construction of operator-not-found error * messages. */

Source from the content-addressed store, hash-verified

611 * messages.
612 */
613static const char *
614op_signature_string(List *op, char oprkind, Oid arg1, Oid arg2)
615{
616 StringInfoData argbuf;
617
618 initStringInfo(&argbuf);
619
620 if (oprkind != 'l')
621 appendStringInfo(&argbuf, "%s ", format_type_be(arg1));
622
623 appendStringInfoString(&argbuf, NameListToString(op));
624
625 appendStringInfo(&argbuf, " %s", format_type_be(arg2));
626
627 return argbuf.data; /* return palloc'd string buffer */
628}
629
630/*
631 * op_error - utility routine to complain about an unresolvable operator

Callers 5

LookupOperNameFunction · 0.85
compatible_operFunction · 0.85
op_errorFunction · 0.85
make_opFunction · 0.85
make_scalar_array_opFunction · 0.85

Calls 5

initStringInfoFunction · 0.85
appendStringInfoFunction · 0.85
format_type_beFunction · 0.85
appendStringInfoStringFunction · 0.85
NameListToStringFunction · 0.85

Tested by

no test coverage detected