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

Function ParseExprs

pkg/sql/parser/parse.go:372–377  ·  view source on GitHub ↗

ParseExprs parses a comma-delimited sequence of SQL scalar expressions. The caller is responsible for ensuring that the input is, in fact, a comma-delimited sequence of SQL scalar expressions — the results are undefined if the string contains invalid SQL syntax.

(sql []string)

Source from the content-addressed store, hash-verified

370// the results are undefined if the string contains invalid SQL
371// syntax.
372func ParseExprs(sql []string) (tree.Exprs, error) {
373 if len(sql) == 0 {
374 return tree.Exprs{}, nil
375 }
376 return parseExprsWithInt(sql, defaultNakedIntType)
377}
378
379// ParseExpr parses a SQL scalar expression. The caller is responsible
380// for ensuring that the input is, in fact, a valid SQL scalar

Callers 1

ParseExprMethod · 0.92

Calls 1

parseExprsWithIntFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…