MCPcopy Create free account
hub / github.com/apache/madlib / int64_div

Function int64_div

methods/array_ops/src/pg_gp/array_ops.c:172–182  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

170}
171
172static
173inline
174int64
175int64_div(int64 num, int64 denom){
176 if (denom == 0) {
177 ereport(ERROR, (errcode(ERRCODE_DIVISION_BY_ZERO),
178 errmsg("division by zero is not allowed"),
179 errdetail("Arrays with element 0 can not be use in the denominator")));
180 }
181 return num / denom;
182}
183
184static
185inline

Callers 1

element_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected