Disallow factorial of negative numbers
Peter Eisentraut <peter@eisentraut.org>
Disallow factorial of negative numbers The previous implementation returned 1 for all negative numbers, which is not sensible under any definition. Discussion: https://www.postgresql.org/message-id/flat/6ce1df0e-86a3-e544-743a-f357ff663f68%402ndquadrant.com
Files
| Path | Change | +/− |
|---|---|---|
| src/backend/utils/adt/numeric.c | modified | +4 −0 |
| src/test/regress/expected/numeric.out | modified | +2 −10 |
Discussion
- factorial of negative numbers 18 messages · 2020-06-15 → 2020-06-18