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

Function ErrorInvalidOperator

pkg/sql/tokenizer/error.go:149–151  ·  view source on GitHub ↗

ErrorInvalidOperator creates an error for an invalid operator. This is used when an operator token has invalid syntax, such as: - Incomplete multi-character operators - Invalid operator combinations Parameters: - value: The invalid operator string - location: Position where the operator started R

(value string, location models.Location)

Source from the content-addressed store, hash-verified

147//
148// Example: "invalid operator: <=> at line 1, column 20"
149func ErrorInvalidOperator(value string, location models.Location) *Error {
150 return NewError(fmt.Sprintf("invalid operator: %s", value), location)
151}

Callers 1

TestTokenizerErrorFunction · 0.85

Calls 1

NewErrorFunction · 0.70

Tested by 1

TestTokenizerErrorFunction · 0.68