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

Function DecodeDecimalDescending

pkg/util/encoding/decimal.go:254–256  ·  view source on GitHub ↗

DecodeDecimalDescending decodes decimals encoded with EncodeDecimalDescending.

(buf []byte, tmp []byte)

Source from the content-addressed store, hash-verified

252
253// DecodeDecimalDescending decodes decimals encoded with EncodeDecimalDescending.
254func DecodeDecimalDescending(buf []byte, tmp []byte) ([]byte, apd.Decimal, error) {
255 return decodeDecimal(buf, tmp, true)
256}
257
258func decodeDecimal(buf []byte, tmp []byte, invert bool) ([]byte, apd.Decimal, error) {
259 // Handle the simplistic cases first.

Callers 1

prettyPrintFirstValueFunction · 0.85

Calls 1

decodeDecimalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…