MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / IncompleteStatementError

Function IncompleteStatementError

pkg/errors/builders.go:201–207  ·  view source on GitHub ↗

IncompleteStatementError creates an E2005 error when the parser reaches the end of input before a SQL statement is complete. This typically means a clause or closing parenthesis is missing. Parameters: - location: Line/column at end-of-input where parsing stopped - sql: Full SQL source used to gene

(location models.Location, sql string)

Source from the content-addressed store, hash-verified

199// - location: Line/column at end-of-input where parsing stopped
200// - sql: Full SQL source used to generate visual context
201func IncompleteStatementError(location models.Location, sql string) *Error {
202 return NewError(
203 ErrCodeIncompleteStatement,
204 "incomplete SQL statement",
205 location,
206 ).WithContext(sql, 1).WithHint("Complete the SQL statement or check for missing clauses")
207}
208
209// WrapError creates a structured error that wraps an existing cause error.
210// Use this to add error code, location, and SQL context to low-level errors

Callers 8

handleEscapeSequenceMethod · 0.92
readPunctuationMethod · 0.92
Example_errorCodesFunction · 0.92
mainFunction · 0.92
TestAllErrorsHaveContextFunction · 0.85

Calls 3

WithHintMethod · 0.80
NewErrorFunction · 0.70
WithContextMethod · 0.45

Tested by 5

Example_errorCodesFunction · 0.74
TestAllErrorsHaveContextFunction · 0.68