MCPcopy
hub / github.com/cube2222/octosql / IsIntegral

Function IsIntegral

parser/sqlparser/dependency/sqltypes/type.go:36–38  ·  view source on GitHub ↗

IsIntegral returns true if querypb.Type is an integral (signed/unsigned) that can be represented using up to 64 binary bits.

(t querypb.Type)

Source from the content-addressed store, hash-verified

34// (signed/unsigned) that can be represented using
35// up to 64 binary bits.
36func IsIntegral(t querypb.Type) bool {
37 return int(t)&flagIsIntegral == flagIsIntegral
38}
39
40// IsSigned returns true if querypb.Type is a signed integral.
41func IsSigned(t querypb.Type) bool {

Callers 3

BuildConvertedFunction · 0.85
IsIntegralMethod · 0.85
TestIsFunctionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestIsFunctionsFunction · 0.68