Compare implements the Datum interface.
(ctx *EvalContext, other Datum)
| 533 | |
| 534 | // Compare implements the Datum interface. |
| 535 | func (d *DBitArray) Compare(ctx *EvalContext, other Datum) int { |
| 536 | if other == DNull { |
| 537 | // NULL is less than any non-NULL value. |
| 538 | return 1 |
| 539 | } |
| 540 | v, ok := UnwrapDatum(ctx, other).(*DBitArray) |
| 541 | if !ok { |
| 542 | panic(makeUnsupportedComparisonMessage(d, other)) |
| 543 | } |
| 544 | return bitarray.Compare(d.BitArray, v.BitArray) |
| 545 | } |
| 546 | |
| 547 | // Prev implements the Datum interface. |
| 548 | func (d *DBitArray) Prev(_ *EvalContext) (Datum, bool) { |
nothing calls this directly
no test coverage detected