forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitdf64650
committed
Forbid numeric NaN in jsonpath
SQL standard doesn't define numeric Inf or NaN values. It appears even moreridiculous to support then in jsonpath assuming JSON doesn't support thesevalues as well. This commit forbids returning NaN from .double(), which waspreviously allowed. NaN can't be result of inner-jsonpath computation overnon-NaNs. So, we can not expect NaN in the jsonpath output.Reported-by: Tom LaneDiscussion:https://postgr.es/m/203949.1591879542%40sss.pgh.pa.usAuthor: Alexander KorotkovReviewed-by: Tom LaneBackpatch-through: 121 parent0657181 commitdf64650
File tree
3 files changed
+10
-25
lines changed- src
- backend/utils/adt
- test/regress/expected
3 files changed
+10
-25
lines changedLines changed: 0 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1773 | 1773 |
| |
1774 | 1774 |
| |
1775 | 1775 |
| |
1776 |
| - | |
1777 |
| - | |
1778 |
| - | |
1779 |
| - | |
1780 |
| - | |
1781 |
| - | |
1782 |
| - | |
1783 |
| - | |
1784 | 1776 |
| |
1785 | 1777 |
| |
1786 | 1778 |
| |
|
Lines changed: 8 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1044 | 1044 |
| |
1045 | 1045 |
| |
1046 | 1046 |
| |
| 1047 | + | |
1047 | 1048 |
| |
1048 | 1049 |
| |
1049 |
| - | |
1050 |
| - | |
1051 |
| - | |
1052 |
| - | |
1053 |
| - | |
| 1050 | + | |
| 1051 | + | |
| 1052 | + | |
| 1053 | + | |
| 1054 | + | |
1054 | 1055 |
| |
1055 |
| - | |
| 1056 | + | |
1056 | 1057 |
| |
1057 | 1058 |
| |
1058 | 1059 |
| |
| |||
1073 | 1074 |
| |
1074 | 1075 |
| |
1075 | 1076 |
| |
1076 |
| - | |
| 1077 | + | |
1077 | 1078 |
| |
1078 | 1079 |
| |
1079 | 1080 |
| |
|
Lines changed: 2 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1500 | 1500 |
| |
1501 | 1501 |
| |
1502 | 1502 |
| |
1503 |
| - | |
1504 |
| - | |
1505 |
| - | |
1506 |
| - | |
1507 |
| - | |
| 1503 | + | |
1508 | 1504 |
| |
1509 |
| - | |
1510 |
| - | |
1511 |
| - | |
1512 |
| - | |
1513 |
| - | |
| 1505 | + | |
1514 | 1506 |
| |
1515 | 1507 |
| |
1516 | 1508 |
| |
|
0 commit comments
Comments
(0)