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

Function ParseDDecimal

pkg/sql/sem/tree/datum.go:912–916  ·  view source on GitHub ↗

ParseDDecimal parses and returns the *DDecimal Datum value represented by the provided string, or an error if parsing is unsuccessful.

(s string)

Source from the content-addressed store, hash-verified

910// ParseDDecimal parses and returns the *DDecimal Datum value represented by the
911// provided string, or an error if parsing is unsuccessful.
912func ParseDDecimal(s string) (*DDecimal, error) {
913 dd := &DDecimal{}
914 err := dd.SetString(s)
915 return dd, err
916}
917
918// SetString sets d to s. Any non-standard NaN values are converted to a
919// normal NaN. Any negative zero is converted to positive.

Callers 3

FuzzParseDDecimalFunction · 0.85
ParseAndRequireStringFunction · 0.85
ResolveAsTypeMethod · 0.85

Calls 1

SetStringMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…