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

Function ParseExpr

pkg/sql/parser/parse.go:383–385  ·  view source on GitHub ↗

ParseExpr parses a SQL scalar expression. The caller is responsible for ensuring that the input is, in fact, a valid SQL scalar expression — the results are undefined if the string contains invalid SQL syntax.

(sql string)

Source from the content-addressed store, hash-verified

381// expression — the results are undefined if the string contains
382// invalid SQL syntax.
383func ParseExpr(sql string) (tree.Expr, error) {
384 return ParseExprWithInt(sql, defaultNakedIntType)
385}
386
387// ParseExprWithInt parses a SQL scalar expression, using the given
388// type when INT is used as type name in the SQL syntax. The caller is

Callers 2

GetTypeReferenceFromNameFunction · 0.85

Calls 1

ParseExprWithIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…