* GetBinaryOperatorId is a helper function for getting and caching the OID * of a operator. */
| 6907 | * of a <leftTypeOid> <operatorName> <rightTypeOid> operator. |
| 6908 | */ |
| 6909 | static Oid |
| 6910 | GetBinaryOperatorId(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 | |
| 6928 | static Oid |
no test coverage detected