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

Function DecodeDecimalValue

pkg/util/encoding/encoding.go:2183–2189  ·  view source on GitHub ↗

DecodeDecimalValue decodes a value encoded by EncodeDecimalValue.

(b []byte)

Source from the content-addressed store, hash-verified

2181
2182// DecodeDecimalValue decodes a value encoded by EncodeDecimalValue.
2183func DecodeDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) {
2184 b, err = decodeValueTypeAssert(b, Decimal)
2185 if err != nil {
2186 return b, apd.Decimal{}, err
2187 }
2188 return DecodeUntaggedDecimalValue(b)
2189}
2190
2191// DecodeUntaggedDecimalValue decodes a value encoded by EncodeUntaggedDecimalValue.
2192func DecodeUntaggedDecimalValue(b []byte) (remaining []byte, d apd.Decimal, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…