forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit0d57dc2
committed
Preserve tz when converting to jsonb timestamptz
This removes an inconsistency in the treatment of different datatypes bythe jsonpath timestamp_tz() function. Conversions from data types thatare not timestamp-aware, such as date and timestamp, are now treatedconsistently with conversion from those that are such as timestamptz.Author: David WheelerReviewed-by: Junwang Zhao and Jeevan ChalkeDiscussion:https://postgr.es/m/7DE080CE-6D8C-4794-9BD1-7D9699172FAB%40justatheory.comBackpatch to release 17.1 parent71795d1 commit0d57dc2
File tree
2 files changed
+27
-2
lines changed- src
- backend/utils/adt
- test/regress/expected
2 files changed
+27
-2
lines changedLines changed: 25 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2707 | 2707 |
| |
2708 | 2708 |
| |
2709 | 2709 |
| |
| 2710 | + | |
| 2711 | + | |
| 2712 | + | |
2710 | 2713 |
| |
2711 | 2714 |
| |
2712 | 2715 |
| |
2713 | 2716 |
| |
2714 | 2717 |
| |
2715 | 2718 |
| |
| 2719 | + | |
| 2720 | + | |
| 2721 | + | |
| 2722 | + | |
| 2723 | + | |
| 2724 | + | |
| 2725 | + | |
| 2726 | + | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
| 2730 | + | |
2716 | 2731 |
| |
2717 | 2732 |
| |
2718 | 2733 |
| |
| |||
2726 | 2741 |
| |
2727 | 2742 |
| |
2728 | 2743 |
| |
| 2744 | + | |
| 2745 | + | |
| 2746 | + | |
| 2747 | + | |
| 2748 | + | |
| 2749 | + | |
| 2750 | + | |
| 2751 | + | |
| 2752 | + | |
| 2753 | + | |
2729 | 2754 |
| |
2730 | 2755 |
| |
2731 | 2756 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2914 | 2914 |
| |
2915 | 2915 |
| |
2916 | 2916 |
| |
2917 |
| - | |
| 2917 | + | |
2918 | 2918 |
| |
2919 | 2919 |
| |
2920 | 2920 |
| |
| |||
3101 | 3101 |
| |
3102 | 3102 |
| |
3103 | 3103 |
| |
3104 |
| - | |
| 3104 | + | |
3105 | 3105 |
| |
3106 | 3106 |
| |
3107 | 3107 |
| |
|
0 commit comments
Comments
(0)