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

Method Error

postgres/parser/parser/lexer.go:213–217  ·  view source on GitHub ↗
(e string)

Source from the content-addressed store, hash-verified

211}
212
213func (l *lexer) Error(e string) {
214 e = strings.TrimPrefix(e, "syntax error: ") // we'll add it again below.
215 l.lastError = pgerror.WithCandidateCode(errors.Newf("%s", e), pgcode.Syntax)
216 l.populateErrorDetails()
217}
218
219func (l *lexer) populateErrorDetails() {
220 lastTok := l.lastToken()

Callers 15

TestLargeOutOfBandValuesFunction · 0.45
MakeServerFunction · 0.45
RunQueryAttemptFunction · 0.45
TestConcurrentWritesFunction · 0.45
assertExpectedGCErrorFunction · 0.45
doUpdateMethod · 0.45
doGCMethod · 0.45
initFunction · 0.45
scanPlaceholderMethod · 0.45
scanStringMethod · 0.45
scanOneStmtMethod · 0.45

Calls 2

populateErrorDetailsMethod · 0.95
WithCandidateCodeFunction · 0.92

Tested by 15

TestLargeOutOfBandValuesFunction · 0.36
TestConcurrentWritesFunction · 0.36
assertExpectedGCErrorFunction · 0.36
doUpdateMethod · 0.36
doGCMethod · 0.36
runScriptFunction · 0.36
TestCsvReaderFunction · 0.36
runReplicationScriptFunction · 0.36
handleErrorChannelMethod · 0.36
TestAuthDoltProceduresFunction · 0.36