MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / Equal

Method Equal

pkg/sql/sem/tree/select.go:689–693  ·  view source on GitHub ↗

Equal checks if the node ordering is equivalent to other.

(other *Order)

Source from the content-addressed store, hash-verified

687
688// Equal checks if the node ordering is equivalent to other.
689func (node *Order) Equal(other *Order) bool {
690 return node.Expr.String() == other.Expr.String() && node.Direction == other.Direction &&
691 node.Table == other.Table && node.OrderType == other.OrderType &&
692 node.NullsOrder == other.NullsOrder
693}
694
695// Limit represents a LIMIT clause.
696type Limit struct {

Callers 4

equalMethod · 0.45
equalMethod · 0.45
PrevMethod · 0.45
NextMethod · 0.45

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected