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

Function CompareBools

pkg/sql/sem/tree/datum.go:390–398  ·  view source on GitHub ↗

CompareBools compares the input bools according to the SQL comparison rules.

(d, v bool)

Source from the content-addressed store, hash-verified

388
389// CompareBools compares the input bools according to the SQL comparison rules.
390func CompareBools(d, v bool) int {
391 if !d && v {
392 return -1
393 }
394 if d && !v {
395 return 1
396 }
397 return 0
398}
399
400// Prev implements the Datum interface.
401func (*DBool) Prev(_ *EvalContext) (Datum, bool) {

Callers 1

CompareMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…