Remove bogus code in oper_exact --- if it didn't find an exact
Tom Lane <tgl@sss.pgh.pa.us>
Remove bogus code in oper_exact --- if it didn't find an exact match then it tried for a self-commutative operator with the reversed input data types. This is pretty silly; there could never be such an operator, except maybe in binary-compatible-type scenarios, and we have oper_inexact for that. Besides which, the oprsanity regress test would complain about such an operator. Remove nonfunctional code and simplify routine calling convention accordingly.
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/parser/parse_node.c | modified | +13 −33 |
| src/backend/parser/parse_oper.c | modified | +16 −67 |
| src/include/parser/parse_node.h | modified | +3 −1 |
| src/include/parser/parse_oper.h | modified | +1 −4 |