UnterminatedBlockCommentError creates an E1009 error for a block comment that was opened with /* but never closed with */. The hint guides the caller to add the missing closing delimiter. Parameters: - location: Line/column where the /* opening was found - sql: Full SQL source used to generate visu
(location models.Location, sql string)
| 61 | // - location: Line/column where the /* opening was found |
| 62 | // - sql: Full SQL source used to generate visual context |
| 63 | func UnterminatedBlockCommentError(location models.Location, sql string) *Error { |
| 64 | return NewError( |
| 65 | ErrCodeUnterminatedBlockComment, |
| 66 | "unterminated block comment (missing */)", |
| 67 | location, |
| 68 | ).WithContext(sql, 2).WithHint("Close the comment with */ or check for unmatched /*") |
| 69 | } |
| 70 | |
| 71 | // InvalidNumberError creates an E1003 error for a malformed numeric literal, such as |
| 72 | // a number with multiple decimal points (1.2.3) or an invalid exponent format. |
no test coverage detected