(e string)
| 211 | } |
| 212 | |
| 213 | func (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 | |
| 219 | func (l *lexer) populateErrorDetails() { |
| 220 | lastTok := l.lastToken() |