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

Function setFmtEncoding

src/fe_utils/string_utils.c:68–72  ·  view source on GitHub ↗

* Set the encoding that fmtId() and fmtQualifiedId() use. * * This is not safe against multiple connections having different encodings, * but there is no real other way to address the need to know the encoding for * fmtId()/fmtQualifiedId() input for safe escaping. Eventually we should get * rid of fmtId(). */

Source from the content-addressed store, hash-verified

66 * rid of fmtId().
67 */
68void
69setFmtEncoding(int encoding)
70{
71 fmtIdEncoding = encoding;
72}
73
74/*
75 * Return the currently configured encoding for fmtId() and fmtQualifiedId().

Callers 8

escape_fmt_idFunction · 0.85
exec_command_encodingFunction · 0.85
SyncVariablesFunction · 0.85
mainFunction · 0.85
setup_connectionFunction · 0.85
processEncodingEntryFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

escape_fmt_idFunction · 0.68