diff options
author | Alexander Korotkov <akorotkov@postgresql.org> | 2023-01-12 18:16:34 +0300 |
---|---|---|
committer | Alexander Korotkov <akorotkov@postgresql.org> | 2023-01-12 18:18:04 +0300 |
commit | 0d9221f1d251b956a33660bff1420140f8abebcb (patch) | |
tree | f7bd6d9c372bfe776f08b68abc50c00f9abf4c5f /src/backend/executor/nodeModifyTable.c | |
parent | b2cc5b81001ad5e856d7316bab11f08ce1386d4b (diff) | |
download | postgresql-0d9221f1d251b956a33660bff1420140f8abebcb.tar.gz postgresql-0d9221f1d251b956a33660bff1420140f8abebcb.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/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions