forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3ec5f6b
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 parenta5f18e8 commit3ec5f6b
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 | |
---|---|---|---|
| |||
986 | 986 |
| |
987 | 987 |
| |
988 | 988 |
| |
989 |
| - | |
| 989 | + | |
990 | 990 |
| |
991 | 991 |
| |
992 | 992 |
| |
| |||
1007 | 1007 |
| |
1008 | 1008 |
| |
1009 | 1009 |
| |
1010 |
| - | |
| 1010 | + | |
1011 | 1011 |
| |
1012 | 1012 |
| |
1013 | 1013 |
| |
|
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)