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

Method IsDayToHour

pkg/sql/types/types.go:1144–1147  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

1142// IsDayToHour returns whether the IntervalDurationField represents
1143// the DAY TO HOUR interval qualifier.
1144func (m *IntervalDurationField) IsDayToHour() bool {
1145 return m.FromDurationType == IntervalDurationType_DAY &&
1146 m.DurationType == IntervalDurationType_HOUR
1147}
1148
1149// IntervalTypeMetadata returns the IntervalTypeMetadata for interval types.
1150func (t *T) IntervalTypeMetadata() (IntervalTypeMetadata, error) {

Callers 1

sqlStdToDurationFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected