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 Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/0a40563eadc67472d6fd50dabf7002afa25c3330 Modified Files -------------- src/backend/utils/adt/numeric.c | 4 ++++ src/test/regress/expected/numeric.out | 12 ++---------- 2 files changed, 6 insertions(+), 10 deletions(-)
pgsql-committers by date:
Соглашаюсь с условиями обработки персональных данных