forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0657181
committed
Improve error reporting for jsonpath .double() method
When jsonpath .double() method detects that numeric or string can't beconverted to double precision, it throws an error. This commit makes theseerrors explicitly express the reason of failure.Discussion:https://postgr.es/m/CAPpHfdtqJtiSXkP7tOXez18NxhLUH_-75bL8%3DOce4Ki%2Bbv7V6Q%40mail.gmail.comAuthor: Alexander KorotkovReviewed-by: Tom LaneBackpatch-through: 121 parente91cd95 commit0657181
File tree
3 files changed
+8
-5
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+8
-5
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1055 | 1055 |
| |
1056 | 1056 |
| |
1057 | 1057 |
| |
1058 |
| - | |
| 1058 | + | |
1059 | 1059 |
| |
1060 | 1060 |
| |
1061 | 1061 |
| |
| |||
1076 | 1076 |
| |
1077 | 1077 |
| |
1078 | 1078 |
| |
1079 |
| - | |
| 1079 | + | |
1080 | 1080 |
| |
1081 | 1081 |
| |
1082 | 1082 |
| |
|
Lines changed: 5 additions & 3 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1496 | 1496 |
| |
1497 | 1497 |
| |
1498 | 1498 |
| |
1499 |
| - | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
1500 | 1502 |
| |
1501 | 1503 |
| |
1502 | 1504 |
| |
| |||
1510 | 1512 |
| |
1511 | 1513 |
| |
1512 | 1514 |
| |
1513 |
| - | |
| 1515 | + | |
1514 | 1516 |
| |
1515 |
| - | |
| 1517 | + | |
1516 | 1518 |
| |
1517 | 1519 |
| |
1518 | 1520 |
| |
|
Lines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
| 315 | + | |
315 | 316 |
| |
316 | 317 |
| |
317 | 318 |
| |
|
0 commit comments
Comments
(0)