aboutsummaryrefslogtreecommitdiff
path: root/src/tutorial/basics.source
diff options
context:
space:
mode:
authorAlexander Korotkov <akorotkov@postgresql.org>2023-01-12 18:16:34 +0300
committerAlexander Korotkov <akorotkov@postgresql.org>2023-01-12 18:17:43 +0300
commit4dc3f94fae3de3f19b5c7dd507beac0216b0cde9 (patch)
tree8722a2aba4f16dfee6c3cdbea3cc3f556ead1330 /src/tutorial/basics.source
parent6f25e48774fe9302ca08dae07420df95998d792a (diff)
downloadpostgresql-4dc3f94fae3de3f19b5c7dd507beac0216b0cde9.tar.gz
postgresql-4dc3f94fae3de3f19b5c7dd507beac0216b0cde9.zip
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 time existence checking assumes variable is present without valuation, and error suppression 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. Johnston Discussion: https://postgr.es/m/CAKFQuwbeytffJkVnEqDyLZ%3DrQsznoTh1OgDoOF3VmOMkxcTMjA%40mail.gmail.com Author: Alexander Korotkov, David G. Johnston Backpatch-through: 12
Diffstat (limited to 'src/tutorial/basics.source')
0 files changed, 0 insertions, 0 deletions