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

Method consumeSpaces

pkg/sql/sem/tree/interval.go:148–154  ·  view source on GitHub ↗

Consumes any number of spaces.

()

Source from the content-addressed store, hash-verified

146
147// Consumes any number of spaces.
148func (l *intervalLexer) consumeSpaces() {
149 if l.err != nil {
150 return
151 }
152 for ; l.offset < len(l.str) && l.str[l.offset] == ' '; l.offset++ {
153 }
154}
155
156// ISO Units.
157var isoDateUnitMap = map[string]duration.Duration{

Callers 2

parseDurationFunction · 0.95
parseShortDurationMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected