MCPcopy Create free account
hub / github.com/apache/cloudberry / PGTYPESdecimal_new

Function PGTYPESdecimal_new

src/interfaces/ecpg/pgtypeslib/numeric.c:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62decimal *
63PGTYPESdecimal_new(void)
64{
65 decimal *var;
66
67 if ((var = (decimal *) pgtypes_alloc(sizeof(decimal))) == NULL)
68 return NULL;
69
70 memset(var, 0, sizeof(decimal));
71
72 return var;
73}
74
75/* ----------
76 * set_var_from_str()

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 1

pgtypes_allocFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68