MCPcopy Create free account
hub / github.com/dolthub/doltgresql / IsSerialType

Function IsSerialType

postgres/parser/types/types.go:2539–2543  ·  view source on GitHub ↗

IsSerialType returns whether or not the input type is a SERIAL type. This function should only be used during parsing.

(typ *T)

Source from the content-addressed store, hash-verified

2537// IsSerialType returns whether or not the input type is a SERIAL type.
2538// This function should only be used during parsing.
2539func IsSerialType(typ *T) bool {
2540 // This is a special case where == is used to compare types, since the SERIAL
2541 // types are pseudo-types.
2542 return typ == &Serial2Type || typ == &Serial4Type || typ == &Serial8Type
2543}
2544
2545// unreservedTypeTokens contain type alias that we resolve during parsing.
2546// Instead of adding a new token to the parser, add the type here.

Callers 1

IsReferenceSerialTypeFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected