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

Function PGTYPESnumeric_new

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

Source from the content-addressed store, hash-verified

43}
44
45numeric *
46PGTYPESnumeric_new(void)
47{
48 numeric *var;
49
50 if ((var = (numeric *) pgtypes_alloc(sizeof(numeric))) == NULL)
51 return NULL;
52
53 if (alloc_var(var, 0) < 0)
54 {
55 free(var);
56 return NULL;
57 }
58
59 return var;
60}
61
62decimal *
63PGTYPESdecimal_new(void)

Callers 15

PGTYPESnumeric_to_ascFunction · 0.85
numericvar_to_doubleFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
ecpg_get_dataFunction · 0.85
ecpg_store_inputFunction · 0.85
deccall2Function · 0.85
deccall3Function · 0.85
deccvdblFunction · 0.85
deccvintFunction · 0.85

Calls 2

pgtypes_allocFunction · 0.85
alloc_varFunction · 0.85

Tested by 4

mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68