MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / ContainsVars

Function ContainsVars

pkg/sql/sem/tree/normalize.go:962–966  ·  view source on GitHub ↗

ContainsVars returns true if the expression contains any variables. (variables = sub-expressions, placeholders, indexed vars, etc.)

(expr Expr)

Source from the content-addressed store, hash-verified

960// ContainsVars returns true if the expression contains any variables.
961// (variables = sub-expressions, placeholders, indexed vars, etc.)
962func ContainsVars(expr Expr) bool {
963 v := containsVarsVisitor{containsVars: false}
964 WalkExprConst(&v, expr)
965 return v.containsVars
966}
967
968// DecimalOne represents the constant 1 as DECIMAL.
969var DecimalOne DDecimal

Callers 1

TestContainsVarsFunction · 0.92

Calls 1

WalkExprConstFunction · 0.85

Tested by 1

TestContainsVarsFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…