forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit231b7d6
committed
SQL/JSON: Improve error-handling of JsonBehavior expressions
Instead of returning a NULL when the JsonBehavior expression valuecould not be coerced to the RETURNING type, throw the error messageinforming the user that it is the JsonBehavior expression that causedthe error with the actual coercion error message shown in its DETAILline.Discussion:https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.comBackpatch-through: 171 parent63e6c5f commit231b7d6
File tree
3 files changed
+78
-28
lines changed- src
- backend/executor
- test/regress/expected
3 files changed
+78
-28
lines changedLines changed: 70 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4284 | 4284 |
| |
4285 | 4285 |
| |
4286 | 4286 |
| |
4287 |
| - | |
4288 |
| - | |
4289 |
| - | |
4290 |
| - | |
4291 |
| - | |
4292 |
| - | |
4293 |
| - | |
| 4287 | + | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
4294 | 4293 |
| |
4295 | 4294 |
| |
4296 | 4295 |
| |
| |||
4400 | 4399 |
| |
4401 | 4400 |
| |
4402 | 4401 |
| |
| 4402 | + | |
| 4403 | + | |
| 4404 | + | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
| 4409 | + | |
4403 | 4410 |
| |
4404 | 4411 |
| |
4405 | 4412 |
| |
| |||
4410 | 4417 |
| |
4411 | 4418 |
| |
4412 | 4419 |
| |
| 4420 | + | |
| 4421 | + | |
| 4422 | + | |
4413 | 4423 |
| |
4414 | 4424 |
| |
4415 | 4425 |
| |
4416 | 4426 |
| |
4417 | 4427 |
| |
4418 | 4428 |
| |
4419 | 4429 |
| |
| 4430 | + | |
| 4431 | + | |
| 4432 | + | |
4420 | 4433 |
| |
4421 | 4434 |
| |
4422 | 4435 |
| |
| |||
4442 | 4455 |
| |
4443 | 4456 |
| |
4444 | 4457 |
| |
| 4458 | + | |
| 4459 | + | |
| 4460 | + | |
4445 | 4461 |
| |
4446 | 4462 |
| |
4447 | 4463 |
| |
| |||
4544 | 4560 |
| |
4545 | 4561 |
| |
4546 | 4562 |
| |
| 4563 | + | |
| 4564 | + | |
| 4565 | + | |
| 4566 | + | |
| 4567 | + | |
| 4568 | + | |
| 4569 | + | |
| 4570 | + | |
| 4571 | + | |
| 4572 | + | |
| 4573 | + | |
| 4574 | + | |
| 4575 | + | |
| 4576 | + | |
| 4577 | + | |
| 4578 | + | |
| 4579 | + | |
| 4580 | + | |
| 4581 | + | |
| 4582 | + | |
| 4583 | + | |
| 4584 | + | |
| 4585 | + | |
4547 | 4586 |
| |
4548 | 4587 |
| |
4549 |
| - | |
| 4588 | + | |
| 4589 | + | |
4550 | 4590 |
| |
4551 | 4591 |
| |
4552 | 4592 |
| |
| |||
4555 | 4595 |
| |
4556 | 4596 |
| |
4557 | 4597 |
| |
| 4598 | + | |
| 4599 | + | |
| 4600 | + | |
| 4601 | + | |
| 4602 | + | |
| 4603 | + | |
| 4604 | + | |
| 4605 | + | |
| 4606 | + | |
| 4607 | + | |
| 4608 | + | |
| 4609 | + | |
| 4610 | + | |
| 4611 | + | |
| 4612 | + | |
| 4613 | + | |
| 4614 | + | |
| 4615 | + | |
| 4616 | + | |
4558 | 4617 |
| |
4559 | 4618 |
| |
| 4619 | + | |
4560 | 4620 |
| |
4561 | 4621 |
| |
4562 | 4622 |
| |
4563 | 4623 |
| |
4564 | 4624 |
| |
4565 | 4625 |
| |
4566 | 4626 |
| |
| 4627 | + | |
| 4628 | + | |
4567 | 4629 |
| |
4568 | 4630 |
| |
4569 | 4631 |
| |
|
Lines changed: 2 additions & 5 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
227 | 227 |
| |
228 | 228 |
| |
229 | 229 |
| |
230 |
| - | |
231 |
| - | |
232 |
| - | |
233 |
| - | |
234 |
| - | |
| 230 | + | |
| 231 | + | |
235 | 232 |
| |
236 | 233 |
| |
237 | 234 |
| |
|
Lines changed: 6 additions & 15 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 |
| - | |
317 |
| - | |
318 |
| - | |
319 |
| - | |
320 |
| - | |
| 316 | + | |
| 317 | + | |
321 | 318 |
| |
322 | 319 |
| |
323 | 320 |
| |
| |||
1035 | 1032 |
| |
1036 | 1033 |
| |
1037 | 1034 |
| |
1038 |
| - | |
1039 |
| - | |
1040 |
| - | |
1041 |
| - | |
1042 |
| - | |
| 1035 | + | |
| 1036 | + | |
1043 | 1037 |
| |
1044 | 1038 |
| |
1045 | 1039 |
| |
| |||
1232 | 1226 |
| |
1233 | 1227 |
| |
1234 | 1228 |
| |
1235 |
| - | |
1236 |
| - | |
1237 |
| - | |
1238 |
| - | |
1239 |
| - | |
| 1229 | + | |
| 1230 | + | |
1240 | 1231 |
| |
1241 | 1232 |
| |
1242 | 1233 |
| |
|
0 commit comments
Comments
(0)