pgsql: Disallow factorial of negative numbers

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: Disallow factorial of negative numbers
Дата
Msg-id E1jloFK-000180-Nc@gemulon.postgresql.org
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Michael Paquier
Дата:
Сообщение: pgsql: Remove reset of testtablespace from pg_regress on Windows
Следующее
От: Michael Paquier
Дата:
Сообщение: pgsql: Fix oldest xmin and LSN computation across repslots after advanc