MCPcopy Create free account
hub / github.com/documentdb/documentdb / MakeTextConst

Function MakeTextConst

pg_documentdb/include/utils/docdb_make_funcs.h:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20#include <metadata/metadata_cache.h>
21
22inline static Const *
23MakeTextConst(const char *cstring, uint32_t stringLength)
24{
25 text *textValue = cstring_to_text_with_len(cstring, stringLength);
26 return makeConst(TEXTOID, -1, DEFAULT_COLLATION_OID, -1, PointerGetDatum(textValue),
27 false,
28 false);
29}
30
31
32inline static Const *

Callers 15

HandleCollStatsFunction · 0.85
HandleIndexStatsFunction · 0.85
HandleRedactFunction · 0.85
HandleProjectFindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected