postgresql/src/test
Bruce Momjian 04a4821ade Attached is a patch implementing factorial(), returning numeric. Points
to note:

1) arttype is numeric. I thought this was the best way of allowing
arbitarily large factorials, even though factorial(2^63) is a large
number. Happy to change to integers if this is overkill.
2) since we're accepting numeric arguments, the patch tests for floats.
If a numeric is passed with non-zero decimal portion, an error is raised
since (from memory) they are undefined.

Gavin Sherry
2003-12-01 21:52:38 +00:00
..
bench $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
examples $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
locale $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
mb $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00
performance
regress Attached is a patch implementing factorial(), returning numeric. Points 2003-12-01 21:52:38 +00:00
Makefile $Header: -> $PostgreSQL Changes ... 2003-11-29 19:52:15 +00:00