callComparisonFunction invokes the binary comparison function for the specified operator |op| with the two arguments |leftLiteral| and |rightLiteral|. The result and any error are returned.
(ctx *sql.Context, op framework.Operator, leftLiteral, rightLiteral sql.Expression)
| 137 | // callComparisonFunction invokes the binary comparison function for the specified operator |op| with the two arguments |
| 138 | // |leftLiteral| and |rightLiteral|. The result and any error are returned. |
| 139 | func callComparisonFunction(ctx *sql.Context, op framework.Operator, leftLiteral, rightLiteral sql.Expression) (result any, err error) { |
| 140 | intermediateFunction := framework.GetBinaryFunction(op) |
| 141 | compiledFunction := intermediateFunction.Compile( |
| 142 | ctx, "_internal_record_comparison_function", leftLiteral, rightLiteral) |
| 143 | return compiledFunction.Eval(ctx, nil) |
| 144 | } |
no test coverage detected