MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / HasFlags

Method HasFlags

pkg/sql/lexbase/encode.go:29–31  ·  view source on GitHub ↗

HasFlags tests whether the given flags are set.

(subset EncodeFlags)

Source from the content-addressed store, hash-verified

27
28// HasFlags tests whether the given flags are set.
29func (f EncodeFlags) HasFlags(subset EncodeFlags) bool {
30 return f&subset == subset
31}
32
33const (
34 // EncNoFlags indicates nothing special should happen while encoding.

Callers 3

EncodeRestrictedSQLIdentFunction · 0.45
EncodeSQLStringWithFlagsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected