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

Function GetBinaryOperatorId

pg_documentdb/src/metadata/metadata_cache.c:6909–6925  ·  view source on GitHub ↗

* GetBinaryOperatorId is a helper function for getting and caching the OID * of a operator. */

Source from the content-addressed store, hash-verified

6907 * of a <leftTypeOid> <operatorName> <rightTypeOid> operator.
6908 */
6909static Oid
6910GetBinaryOperatorId(Oid *operatorId, Oid leftTypeOid, char *operatorName,
6911 Oid rightTypeOid)
6912{
6913 InitializeDocumentDBApiExtensionCache();
6914
6915 if (*operatorId == InvalidOid)
6916 {
6917 List *operatorNameList = list_make2(makeString(ApiCatalogSchemaName),
6918 makeString(operatorName));
6919
6920 *operatorId =
6921 OpernameGetOprid(operatorNameList, leftTypeOid, rightTypeOid);
6922 }
6923
6924 return *operatorId;
6925}
6926
6927
6928static Oid

Tested by

no test coverage detected