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

Function compatible_oper_opid

src/backend/parser/parse_oper.c:498–512  ·  view source on GitHub ↗

compatible_oper_opid() -- get OID of a binary operator * * This is a convenience routine that extracts only the operator OID * from the result of compatible_oper(). InvalidOid is returned if the * lookup fails and noError is true. */

Source from the content-addressed store, hash-verified

496 * lookup fails and noError is true.
497 */
498Oid
499compatible_oper_opid(List *op, Oid arg1, Oid arg2, bool noError)
500{
501 Operator optup;
502 Oid result;
503
504 optup = compatible_oper(NULL, op, arg1, arg2, noError, -1);
505 if (optup != NULL)
506 {
507 result = oprid(optup);
508 ReleaseSysCache(optup);
509 return result;
510 }
511 return InvalidOid;
512}
513
514
515/* left_oper() -- search for a unary left operator (prefix operator)

Callers 2

ComputeIndexAttrsFunction · 0.85
addTargetToSortListFunction · 0.85

Calls 3

compatible_operFunction · 0.85
opridFunction · 0.85
ReleaseSysCacheFunction · 0.85

Tested by

no test coverage detected