- Notifications
You must be signed in to change notification settings - Fork5.2k
Commit63e6c5f
committed
SQL/JSON: Fix error-handling of some JsonBehavior expressions
To ensure that the errors of executing a JsonBehavior expression thatis 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 errorsthat are caught that way.Discussion:https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.comBackpatch-through: 171 parentc7301c3 commit63e6c5f
File tree
4 files changed
+65
-4
lines changed- src
- backend/executor
- test/regress/expected
4 files changed
+65
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4400 | 4400 | | |
4401 | 4401 | | |
4402 | 4402 | | |
| 4403 | + | |
| 4404 | + | |
4403 | 4405 | | |
4404 | 4406 | | |
4405 | 4407 | | |
| |||
4410 | 4412 | | |
4411 | 4413 | | |
4412 | 4414 | | |
4413 | | - | |
| 4415 | + | |
| 4416 | + | |
| 4417 | + | |
| 4418 | + | |
| 4419 | + | |
| 4420 | + | |
4414 | 4421 | | |
4415 | 4422 | | |
| 4423 | + | |
4416 | 4424 | | |
4417 | 4425 | | |
4418 | 4426 | | |
4419 | 4427 | | |
4420 | 4428 | | |
4421 | 4429 | | |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
| 4433 | + | |
| 4434 | + | |
| 4435 | + | |
| 4436 | + | |
| 4437 | + | |
| 4438 | + | |
| 4439 | + | |
| 4440 | + | |
| 4441 | + | |
| 4442 | + | |
| 4443 | + | |
| 4444 | + | |
4422 | 4445 | | |
4423 | 4446 | | |
4424 | 4447 | | |
| |||
4433 | 4456 | | |
4434 | 4457 | | |
4435 | 4458 | | |
| 4459 | + | |
| 4460 | + | |
4436 | 4461 | | |
4437 | 4462 | | |
4438 | 4463 | | |
| |||
4443 | 4468 | | |
4444 | 4469 | | |
4445 | 4470 | | |
4446 | | - | |
| 4471 | + | |
| 4472 | + | |
| 4473 | + | |
| 4474 | + | |
| 4475 | + | |
| 4476 | + | |
4447 | 4477 | | |
4448 | 4478 | | |
| 4479 | + | |
4449 | 4480 | | |
4450 | 4481 | | |
4451 | 4482 | | |
4452 | 4483 | | |
4453 | 4484 | | |
| 4485 | + | |
| 4486 | + | |
| 4487 | + | |
| 4488 | + | |
| 4489 | + | |
| 4490 | + | |
| 4491 | + | |
| 4492 | + | |
| 4493 | + | |
| 4494 | + | |
| 4495 | + | |
| 4496 | + | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
4454 | 4501 | | |
4455 | 4502 | | |
4456 | 4503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4558 | 4558 | | |
4559 | 4559 | | |
4560 | 4560 | | |
| 4561 | + | |
| 4562 | + | |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
4561 | 4567 | | |
4562 | 4568 | | |
4563 | 4569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
231 | 235 | | |
232 | 236 | | |
233 | 237 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1232 | 1232 | | |
1233 | 1233 | | |
1234 | 1234 | | |
1235 | | - | |
| 1235 | + | |
| 1236 | + | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
1236 | 1240 | | |
1237 | 1241 | | |
1238 | 1242 | | |
| |||
0 commit comments
Comments
(0)