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

Function NewNumVal

pkg/sql/sem/tree/constant.go:128–130  ·  view source on GitHub ↗

NewNumVal constructs a new NumVal instance. This is used during parsing and in tests.

(value constant.Value, origString string, negative bool)

Source from the content-addressed store, hash-verified

126// NewNumVal constructs a new NumVal instance. This is used during parsing and
127// in tests.
128func NewNumVal(value constant.Value, origString string, negative bool) *NumVal {
129 return &NumVal{value: value, origString: origString, negative: negative}
130}
131
132// Kind implements the constant.Value interface.
133func (expr *NumVal) Kind() constant.Kind {

Callers 3

TestParsePrecedenceFunction · 0.92
scanNumberMethod · 0.92
ParseMethod · 0.92

Calls

no outgoing calls

Tested by 1

TestParsePrecedenceFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…