forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3161ae8
committed
Fix jsonpath existense checking of missing variables
The current jsonpath code assumes that the referenced variable always exists.It could only throw an error at the value valuation time. At the same timeexistence checking assumes variable is present without valuation, and errorsuppression doesn't work for missing variables.This commit makes existense checking trigger an error for missing variables.This makes the overall behavior consistent.Backpatch to 12 where jsonpath was introduced.Reported-by: David G. JohnstonDiscussion:https://postgr.es/m/CAKFQuwbeytffJkVnEqDyLZ%3DrQsznoTh1OgDoOF3VmOMkxcTMjA%40mail.gmail.comAuthor: Alexander Korotkov, David G. JohnstonBackpatch-through: 121 parentc8ad4d8 commit3161ae8
File tree
3 files changed
+46
-2
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+46
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
959 | 959 | | |
960 | 960 | | |
961 | 961 | | |
962 | | - | |
| 962 | + | |
963 | 963 | | |
964 | | - | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
965 | 969 | | |
966 | 970 | | |
967 | 971 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2212 | 2212 | | |
2213 | 2213 | | |
2214 | 2214 | | |
| 2215 | + | |
| 2216 | + | |
| 2217 | + | |
| 2218 | + | |
| 2219 | + | |
| 2220 | + | |
| 2221 | + | |
| 2222 | + | |
2215 | 2223 | | |
2216 | 2224 | | |
2217 | 2225 | | |
| |||
2282 | 2290 | | |
2283 | 2291 | | |
2284 | 2292 | | |
| 2293 | + | |
| 2294 | + | |
| 2295 | + | |
| 2296 | + | |
| 2297 | + | |
| 2298 | + | |
| 2299 | + | |
| 2300 | + | |
2285 | 2301 | | |
2286 | 2302 | | |
2287 | 2303 | | |
| |||
2312 | 2328 | | |
2313 | 2329 | | |
2314 | 2330 | | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
| 2335 | + | |
| 2336 | + | |
| 2337 | + | |
| 2338 | + | |
2315 | 2339 | | |
2316 | 2340 | | |
2317 | 2341 | | |
| |||
2374 | 2398 | | |
2375 | 2399 | | |
2376 | 2400 | | |
| 2401 | + | |
| 2402 | + | |
| 2403 | + | |
| 2404 | + | |
| 2405 | + | |
| 2406 | + | |
| 2407 | + | |
| 2408 | + | |
2377 | 2409 | | |
2378 | 2410 | | |
2379 | 2411 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
532 | 532 | | |
533 | 533 | | |
534 | 534 | | |
| 535 | + | |
| 536 | + | |
535 | 537 | | |
536 | 538 | | |
537 | 539 | | |
| |||
547 | 549 | | |
548 | 550 | | |
549 | 551 | | |
| 552 | + | |
| 553 | + | |
550 | 554 | | |
551 | 555 | | |
552 | 556 | | |
553 | 557 | | |
554 | 558 | | |
555 | 559 | | |
| 560 | + | |
| 561 | + | |
556 | 562 | | |
557 | 563 | | |
558 | 564 | | |
| |||
569 | 575 | | |
570 | 576 | | |
571 | 577 | | |
| 578 | + | |
| 579 | + | |
572 | 580 | | |
573 | 581 | | |
574 | 582 | | |
| |||
0 commit comments
Comments
(0)