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

Method IsDayToHour

pkg/sql/types/types.go:743–746  ·  view source on GitHub ↗

IsDayToHour returns whether the IntervalDurationField represents the DAY TO HOUR interval qualifier.

()

Source from the content-addressed store, hash-verified

741// IsDayToHour returns whether the IntervalDurationField represents
742// the DAY TO HOUR interval qualifier.
743func (m *IntervalDurationField) IsDayToHour() bool {
744 return m.FromDurationType == IntervalDurationType_DAY &&
745 m.DurationType == IntervalDurationType_HOUR
746}
747
748// IntervalTypeMetadata returns the IntervalTypeMetadata for interval types.
749func (t *T) IntervalTypeMetadata() (IntervalTypeMetadata, error) {

Callers 1

sqlStdToDurationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected