MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Unimplemented

Method Unimplemented

pkg/sql/plpgsql/parser/lexer.go:616–624  ·  view source on GitHub ↗

Unimplemented wraps Error, setting lastUnimplementedError.

(feature string)

Source from the content-addressed store, hash-verified

614
615// Unimplemented wraps Error, setting lastUnimplementedError.
616func (l *lexer) Unimplemented(feature string) {
617 l.lastError = unimp.New(feature, "this syntax")
618 lastTok := l.lastToken()
619 l.lastError = parser.PopulateErrorDetails(lastTok.id, lastTok.str, lastTok.pos, l.lastError, l.in)
620 l.lastError = &tree.UnsupportedError{
621 Err: l.lastError,
622 FeatureName: feature,
623 }
624}
625
626func (l *lexer) ParseExpr(sqlStr string) (plpgsqltree.Expr, error) {
627 // Use ParseExprs instead of ParseExpr in order to correctly handle the case

Callers 1

unimplementedFunction · 0.45

Calls 2

lastTokenMethod · 0.95
PopulateErrorDetailsFunction · 0.92

Tested by

no test coverage detected