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

Function ErrorUnterminatedString

pkg/sql/tokenizer/error.go:96–98  ·  view source on GitHub ↗

ErrorUnterminatedString creates an error for an unterminated string literal. This occurs when a string literal (single or double quoted) is not properly closed before the end of the line or input. Parameters: - location: Position where the string started Returns an Error indicating the string was

(location models.Location)

Source from the content-addressed store, hash-verified

94//
95// Example: "unterminated string literal at line 3, column 15"
96func ErrorUnterminatedString(location models.Location) *Error {
97 return NewError("unterminated string literal", location)
98}
99
100// ErrorInvalidNumber creates an error for an invalid number format.
101//

Callers 1

TestTokenizerErrorFunction · 0.85

Calls 1

NewErrorFunction · 0.70

Tested by 1

TestTokenizerErrorFunction · 0.68