(e string)
| 412 | } |
| 413 | |
| 414 | func (l *lexer) Error(e string) { |
| 415 | e = strings.TrimPrefix(e, "syntax error: ") // we'll add it again below. |
| 416 | l.lastError = pgerror.WithCandidateCode(errors.Newf("%s", e), pgcode.Syntax) |
| 417 | l.populateErrorDetails() |
| 418 | } |
| 419 | |
| 420 | // PopulateErrorDetails properly wraps the "last error" field in the lexer. |
| 421 | func PopulateErrorDetails( |
nothing calls this directly
no test coverage detected