pgsql: Disallow factorial of negative numbers - Mailing list pgsql-committers

From Peter Eisentraut
Subject pgsql: Disallow factorial of negative numbers
Date
Msg-id E1jloFK-000180-Nc@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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:

Previous
From: Michael Paquier
Date:
Subject: pgsql: Remove reset of testtablespace from pg_regress on Windows
Next
From: Michael Paquier
Date:
Subject: pgsql: Fix oldest xmin and LSN computation across repslots after advanc