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

Method Error

pkg/sql/parser/lexer.go:189–193  ·  view source on GitHub ↗
(e string)

Source from the content-addressed store, hash-verified

187}
188
189func (l *lexer) Error(e string) {
190 e = strings.TrimPrefix(e, "syntax error: ") // we'll add it again below.
191 l.lastError = pgerror.WithCandidateCode(errors.New(e), pgcode.Syntax)
192 l.populateErrorDetails()
193}
194
195func (l *lexer) populateErrorDetails() {
196 lastTok := l.lastToken()

Callers

nothing calls this directly

Calls 2

populateErrorDetailsMethod · 0.95
WithCandidateCodeFunction · 0.92

Tested by

no test coverage detected