forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit3c3ccd4
committed
SQL/JSON: Respect OMIT QUOTES when RETURNING domains over jsonb
populate_domain() didn't take into account the omit_quotes flag passeddown to json_populate_type() by ExecEvalJsonCoercion() and that ledto incorrect behavior when the RETURNING type is a domain overjsonb. Fix that by passing the flag by adding a new functionparameter to populate_domain().Reported-by: Jian He <jian.universality@gmail.com>Discussion:https://postgr.es/m/CACJufxEo4sUjKCYtda0_qt9tazqqKPmF1cqhW9KBOUeJFqQd2g@mail.gmail.comBackpatch-through: 171 parentd1dc4ae commit3c3ccd4
File tree
3 files changed
+26
-5
lines changed- src
- backend/utils/adt
- test/regress
- expected
- sql
3 files changed
+26
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
470 | 470 | | |
471 | 471 | | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| |||
3218 | 3218 | | |
3219 | 3219 | | |
3220 | 3220 | | |
3221 | | - | |
| 3221 | + | |
| 3222 | + | |
3222 | 3223 | | |
3223 | 3224 | | |
3224 | 3225 | | |
| |||
3229 | 3230 | | |
3230 | 3231 | | |
3231 | 3232 | | |
3232 | | - | |
| 3233 | + | |
3233 | 3234 | | |
3234 | 3235 | | |
3235 | 3236 | | |
| |||
3461 | 3462 | | |
3462 | 3463 | | |
3463 | 3464 | | |
3464 | | - | |
| 3465 | + | |
3465 | 3466 | | |
3466 | 3467 | | |
3467 | 3468 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
734 | 734 | | |
735 | 735 | | |
736 | 736 | | |
| 737 | + | |
| 738 | + | |
| 739 | + | |
| 740 | + | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
737 | 752 | | |
738 | 753 | | |
739 | 754 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
217 | 222 | | |
218 | 223 | | |
219 | 224 | | |
| |||
0 commit comments
Comments
(0)