Extract right arg of a binary opclause (NULL if it's a unary opclause) */
| 82 | |
| 83 | /* Extract right arg of a binary opclause (NULL if it's a unary opclause) */ |
| 84 | static inline Node * |
| 85 | get_rightop(const void *clause) |
| 86 | { |
| 87 | const OpExpr *expr = (const OpExpr *) clause; |
| 88 | |
| 89 | if (list_length(expr->args) >= 2) |
| 90 | return (Node *) lsecond(expr->args); |
| 91 | else |
| 92 | return NULL; |
| 93 | } |
| 94 | |
| 95 | /* Is clause an AND clause? */ |
| 96 | static inline bool |