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

Function fmtId

src/fe_utils/string_utils.c:258–262  ·  view source on GitHub ↗

* Quotes input string if it's not a legitimate SQL identifier as-is. * * Note that the returned string must be used before calling fmtId again, * since we re-use the same return buffer each time. * * NB: This assumes setFmtEncoding() previously has been called to configure * the encoding of rawid. It is preferable to use fmtIdEnc() with an * explicit encoding. */

Source from the content-addressed store, hash-verified

256 * explicit encoding.
257 */
258const char *
259fmtId(const char *rawid)
260{
261 return fmtIdEnc(rawid, getFmtEncoding());
262}
263
264/*
265 * fmtQualifiedIdEnc - construct a schema-qualified name, with quoting as

Callers 15

appendReloptionsArrayFunction · 0.85
escape_fmt_idFunction · 0.85
describeOneTableDetailsFunction · 0.85
exec_command_passwordFunction · 0.85
get_create_object_cmdFunction · 0.85
mainFunction · 0.85
dumpResGroupsFunction · 0.85
dumpResQueuesFunction · 0.85
dropRolesFunction · 0.85
dumpRolesFunction · 0.85
dumpRoleMembershipFunction · 0.85
dumpRoleConstraintsFunction · 0.85

Calls 2

fmtIdEncFunction · 0.85
getFmtEncodingFunction · 0.85

Tested by 1

escape_fmt_idFunction · 0.68