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

Function ErrorInvalidIdentifier

pkg/sql/tokenizer/error.go:132–134  ·  view source on GitHub ↗

ErrorInvalidIdentifier creates an error for an invalid identifier. This is used when an identifier has invalid syntax, such as: - Starting with a digit (when not quoted) - Containing invalid characters - Unterminated quoted identifier Parameters: - value: The invalid identifier string - location:

(value string, location models.Location)

Source from the content-addressed store, hash-verified

130//
131// Example: "invalid identifier: 123abc at line 2, column 8"
132func ErrorInvalidIdentifier(value string, location models.Location) *Error {
133 return NewError(fmt.Sprintf("invalid identifier: %s", value), location)
134}
135
136// ErrorInvalidOperator creates an error for an invalid operator.
137//

Callers 1

TestTokenizerErrorFunction · 0.85

Calls 1

NewErrorFunction · 0.70

Tested by 1

TestTokenizerErrorFunction · 0.68