forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitcc4fdfa
committed
Make jsonpath .string() be immutable for datetimes.
Discussion of commited055d2 revealed that we don't actuallywant jsonpath's .string() method to depend on DateStyle, norTimeZone either, because the non-"_tz" jsonpath functions aresupposed to be immutable. Potentially we could allow a TimeZonedependency in the "_tz" variants, but it seems better to justuniformly define this method as returning the same string thatjsonb text output would do. That's easier to implement too,saving a couple dozen lines.Patch by me, per complaint from Peter Eisentraut. Back-patchto v17 where this feature came in (in66ea94e). Alsoback-patched055d2 to provide test cases.Discussion:https://postgr.es/m/5e8879d0-a3c8-4be2-950f-d83aa2af953a@eisentraut.org1 parent2645f6d commitcc4fdfa
File tree
6 files changed
+117
-49
lines changed- doc/src/sgml
- src
- backend/utils/adt
- test/regress
- expected
- sql
6 files changed
+117
-49
lines changedLines changed: 11 additions & 8 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17965 | 17965 |
| |
17966 | 17966 |
| |
17967 | 17967 |
| |
17968 |
| - | |
| 17968 | + | |
| 17969 | + | |
17969 | 17970 |
| |
17970 | 17971 |
| |
17971 | 17972 |
| |
17972 | 17973 |
| |
17973 | 17974 |
| |
17974 | 17975 |
| |
17975 |
| - | |
17976 |
| - | |
| 17976 | + | |
| 17977 | + | |
17977 | 17978 |
| |
17978 | 17979 |
| |
17979 | 17980 |
| |
| |||
18054 | 18055 |
| |
18055 | 18056 |
| |
18056 | 18057 |
| |
18057 |
| - | |
| 18058 | + | |
| 18059 | + | |
| 18060 | + | |
18058 | 18061 |
| |
18059 | 18062 |
| |
18060 | 18063 |
| |
| |||
18156 | 18159 |
| |
18157 | 18160 |
| |
18158 | 18161 |
| |
18159 |
| - | |
| 18162 | + | |
18160 | 18163 |
| |
18161 | 18164 |
| |
18162 | 18165 |
| |
| |||
18185 | 18188 |
| |
18186 | 18189 |
| |
18187 | 18190 |
| |
18188 |
| - | |
| 18191 | + | |
18189 | 18192 |
| |
18190 | 18193 |
| |
18191 | 18194 |
| |
| |||
18214 | 18217 |
| |
18215 | 18218 |
| |
18216 | 18219 |
| |
18217 |
| - | |
| 18220 | + | |
18218 | 18221 |
| |
18219 | 18222 |
| |
18220 | 18223 |
| |
| |||
18243 | 18246 |
| |
18244 | 18247 |
| |
18245 | 18248 |
| |
18246 |
| - | |
| 18249 | + | |
18247 | 18250 |
| |
18248 | 18251 |
| |
18249 | 18252 |
| |
|
Lines changed: 8 additions & 26 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
| 75 | + | |
75 | 76 |
| |
76 | 77 |
| |
77 | 78 |
| |
| |||
1629 | 1630 |
| |
1630 | 1631 |
| |
1631 | 1632 |
| |
1632 |
| - | |
1633 |
| - | |
1634 |
| - | |
1635 |
| - | |
1636 |
| - | |
1637 |
| - | |
1638 |
| - | |
1639 |
| - | |
1640 |
| - | |
1641 |
| - | |
1642 |
| - | |
1643 |
| - | |
1644 |
| - | |
1645 |
| - | |
1646 |
| - | |
1647 |
| - | |
1648 |
| - | |
1649 |
| - | |
1650 |
| - | |
1651 |
| - | |
1652 |
| - | |
1653 |
| - | |
1654 |
| - | |
1655 |
| - | |
1656 |
| - | |
1657 |
| - | |
| 1633 | + | |
| 1634 | + | |
| 1635 | + | |
| 1636 | + | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
1658 | 1640 |
| |
1659 | 1641 |
| |
1660 | 1642 |
| |
|
Lines changed: 7 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 |
| - | |
| 4 | + | |
6 | 5 |
| |
7 | 6 |
| |
8 | 7 |
| |
9 | 8 |
| |
10 | 9 |
| |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
11 | 16 |
| |
12 | 17 |
| |
13 | 18 |
| |
|
Lines changed: 71 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2586 | 2586 |
| |
2587 | 2587 |
| |
2588 | 2588 |
| |
2589 |
| - | |
2590 |
| - | |
2591 |
| - | |
2592 |
| - | |
2593 |
| - | |
2594 |
| - | |
2595 |
| - | |
2596 |
| - | |
2597 |
| - | |
2598 | 2589 |
| |
2599 | 2590 |
| |
2600 | 2591 |
| |
| |||
2607 | 2598 |
| |
2608 | 2599 |
| |
2609 | 2600 |
| |
| 2601 | + | |
| 2602 | + | |
| 2603 | + | |
| 2604 | + | |
| 2605 | + | |
| 2606 | + | |
| 2607 | + | |
| 2608 | + | |
| 2609 | + | |
| 2610 | + | |
| 2611 | + | |
| 2612 | + | |
| 2613 | + | |
| 2614 | + | |
| 2615 | + | |
| 2616 | + | |
| 2617 | + | |
| 2618 | + | |
| 2619 | + | |
| 2620 | + | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
| 2624 | + | |
| 2625 | + | |
| 2626 | + | |
| 2627 | + | |
| 2628 | + | |
| 2629 | + | |
| 2630 | + | |
| 2631 | + | |
| 2632 | + | |
| 2633 | + | |
| 2634 | + | |
| 2635 | + | |
| 2636 | + | |
| 2637 | + | |
| 2638 | + | |
| 2639 | + | |
| 2640 | + | |
| 2641 | + | |
| 2642 | + | |
| 2643 | + | |
| 2644 | + | |
| 2645 | + | |
| 2646 | + | |
| 2647 | + | |
| 2648 | + | |
| 2649 | + | |
| 2650 | + | |
| 2651 | + | |
| 2652 | + | |
| 2653 | + | |
| 2654 | + | |
| 2655 | + | |
| 2656 | + | |
| 2657 | + | |
| 2658 | + | |
| 2659 | + | |
| 2660 | + | |
| 2661 | + | |
| 2662 | + | |
| 2663 | + | |
| 2664 | + | |
| 2665 | + | |
| 2666 | + | |
| 2667 | + | |
| 2668 | + | |
| 2669 | + | |
| 2670 | + | |
| 2671 | + | |
2610 | 2672 |
| |
2611 | 2673 |
| |
2612 | 2674 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 |
| - | |
5 | 4 |
| |
6 |
| - | |
| 5 | + | |
| 6 | + | |
7 | 7 |
| |
8 | 8 |
| |
9 | 9 |
| |
|
Lines changed: 18 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
587 | 587 |
| |
588 | 588 |
| |
589 | 589 |
| |
590 |
| - | |
591 |
| - | |
592 | 590 |
| |
593 | 591 |
| |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
594 | 610 |
| |
595 | 611 |
| |
596 | 612 |
| |
|
0 commit comments
Comments
(0)