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

Function oidCanBeCollatedString

pkg/sql/types/types.go:973–979  ·  view source on GitHub ↗

oidCanBeCollatedString returns true if the given oid is can be a CollatedString.

(o oid.Oid)

Source from the content-addressed store, hash-verified

971
972// oidCanBeCollatedString returns true if the given oid is can be a CollatedString.
973func oidCanBeCollatedString(o oid.Oid) bool {
974 switch o {
975 case oid.T_text, oid.T_varchar, oid.T_bpchar, oid.T_char, oid.T_name:
976 return true
977 }
978 return false
979}
980
981// MakeCollatedString constructs a new instance of a CollatedStringFamily type
982// that is collated according to the given locale. The new type is based upon

Callers 2

MakeCollatedStringFunction · 0.85
WithoutTypeModifiersMethod · 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…