aboutsummaryrefslogtreecommitdiff
path: root/src/backend/utils/adt/jsonfuncs.c
diff options
context:
space:
mode:
authorAmit Langote <amitlan@postgresql.org>2024-07-26 15:59:27 +0900
committerAmit Langote <amitlan@postgresql.org>2024-07-26 16:00:06 +0900
commit63e6c5f4a2eeb22e0dd446a62c2b4b417d2b51f0 (patch)
tree3ce786dcf32d88140630721cf051c32dd61033fa /src/backend/utils/adt/jsonfuncs.c
parentc7301c3b6fe2feaf96d52cbf35a85ac6b95374dc (diff)
downloadpostgresql-63e6c5f4a2eeb22e0dd446a62c2b4b417d2b51f0.tar.gz
postgresql-63e6c5f4a2eeb22e0dd446a62c2b4b417d2b51f0.zip
SQL/JSON: Fix error-handling of some JsonBehavior expressions
To ensure that the errors of executing a JsonBehavior expression that is coerced in the parser are caught instead of being thrown directly, pass ErrorSaveContext to ExecInitExprRec() when initializing it. Also, add a EEOP_JSONEXPR_COERCION_FINISH step to handle the errors that are caught that way. Discussion: https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.com Backpatch-through: 17
Diffstat (limited to 'src/backend/utils/adt/jsonfuncs.c')
0 files changed, 0 insertions, 0 deletions