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

Method init

postgres/parser/parser/lexer.go:61–71  ·  view source on GitHub ↗
(sql string, tokens []sqlSymType, nakedIntType *types.T)

Source from the content-addressed store, hash-verified

59}
60
61func (l *lexer) init(sql string, tokens []sqlSymType, nakedIntType *types.T) {
62 l.in = sql
63 l.tokens = tokens
64 l.lastPos = -1
65 l.stmt = nil
66 l.numPlaceholders = 0
67 l.numAnnotations = 0
68 l.lastError = nil
69
70 l.nakedIntType = nakedIntType
71}
72
73// cleanup is used to avoid holding on to memory unnecessarily (for the cases
74// where we reuse a scanner).

Callers 3

parseWithDepthMethod · 0.45
parseMethod · 0.45
HasMultipleStatementsFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected