(e string)
| 187 | } |
| 188 | |
| 189 | func (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 | |
| 195 | func (l *lexer) populateErrorDetails() { |
| 196 | lastTok := l.lastToken() |
nothing calls this directly
no test coverage detected