- Notifications
You must be signed in to change notification settings - Fork5.3k
Commit0a40563
committed
Disallow factorial of negative numbers
The previous implementation returned 1 for all negative numbers, whichis not sensible under any definition.Discussion:https://www.postgresql.org/message-id/flat/6ce1df0e-86a3-e544-743a-f357ff663f68%402ndquadrant.com1 parent9d402c7 commit0a40563
File tree
2 files changed
+6
-10
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2946 | 2946 | | |
2947 | 2947 | | |
2948 | 2948 | | |
| 2949 | + | |
| 2950 | + | |
| 2951 | + | |
| 2952 | + | |
2949 | 2953 | | |
2950 | 2954 | | |
2951 | 2955 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2345 | 2345 | | |
2346 | 2346 | | |
2347 | 2347 | | |
2348 | | - | |
2349 | | - | |
2350 | | - | |
2351 | | - | |
2352 | | - | |
| 2348 | + | |
2353 | 2349 | | |
2354 | | - | |
2355 | | - | |
2356 | | - | |
2357 | | - | |
2358 | | - | |
| 2350 | + | |
0 commit comments
Comments
(0)