forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitf4ae676
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 parent3ec5f6b commitf4ae676
File tree
3 files changed
+10
-25
lines changed- src
- backend/utils/adt
- test/regress/expected
3 files changed
+10
-25
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1728 | 1728 | | |
1729 | 1729 | | |
1730 | 1730 | | |
1731 | | - | |
1732 | | - | |
1733 | | - | |
1734 | | - | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
1738 | | - | |
1739 | 1731 | | |
1740 | 1732 | | |
1741 | 1733 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
975 | 975 | | |
976 | 976 | | |
977 | 977 | | |
| 978 | + | |
978 | 979 | | |
979 | 980 | | |
980 | | - | |
981 | | - | |
982 | | - | |
983 | | - | |
984 | | - | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
985 | 986 | | |
986 | | - | |
| 987 | + | |
987 | 988 | | |
988 | 989 | | |
989 | 990 | | |
| |||
1004 | 1005 | | |
1005 | 1006 | | |
1006 | 1007 | | |
1007 | | - | |
| 1008 | + | |
1008 | 1009 | | |
1009 | 1010 | | |
1010 | 1011 | | |
| |||
| 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)