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. */
| 496 | * lookup fails and noError is true. |
| 497 | */ |
| 498 | Oid |
| 499 | compatible_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) |
no test coverage detected