forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit8b3eb0c
committed
Fix error inconsistency in older ICU versions.
To support older ICU versions, we rely onicu_set_collation_attributes() to do error checking that is handleddirectly by ucol_open() in newer ICU versions. Commit3b50275introduced a slight inconsistency, where the error report includes thefixed-up locale string, rather than the locale string passed topg_ucol_open().Refactor slightly so that pg_ucol_open() handles the errors from bothucol_open() and icu_set_collation_attributes(), making it easier tosee any differences between the error reports. It also makespg_ucol_open() responsible for closing the UCollator on error, whichseems like the right place.Discussion:https://postgr.es/m/04182066-7655-344a-b8b7-040b1b2490fb%40enterprisedb.comReviewed-by: Peter Eisentraut1 parent90189ee commit8b3eb0c
1 file changed
+34
-28
lines changedLines changed: 34 additions & 28 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
147 | 147 |
| |
148 | 148 |
| |
149 | 149 |
| |
150 |
| - | |
| 150 | + | |
| 151 | + | |
151 | 152 |
| |
152 | 153 |
| |
153 | 154 |
| |
| |||
2496 | 2497 |
| |
2497 | 2498 |
| |
2498 | 2499 |
| |
| 2500 | + | |
2499 | 2501 |
| |
2500 | 2502 |
| |
2501 | 2503 |
| |
| |||
2544 | 2546 |
| |
2545 | 2547 |
| |
2546 | 2548 |
| |
| 2549 | + | |
2547 | 2550 |
| |
2548 |
| - | |
| 2551 | + | |
2549 | 2552 |
| |
2550 | 2553 |
| |
2551 |
| - | |
| 2554 | + | |
| 2555 | + | |
| 2556 | + | |
| 2557 | + | |
| 2558 | + | |
| 2559 | + | |
| 2560 | + | |
| 2561 | + | |
| 2562 | + | |
| 2563 | + | |
| 2564 | + | |
| 2565 | + | |
| 2566 | + | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
2552 | 2570 |
| |
2553 | 2571 |
| |
2554 | 2572 |
| |
| |||
2698 | 2716 |
| |
2699 | 2717 |
| |
2700 | 2718 |
| |
2701 |
| - | |
| 2719 | + | |
| 2720 | + | |
2702 | 2721 |
| |
2703 |
| - | |
2704 | 2722 |
| |
2705 | 2723 |
| |
2706 | 2724 |
| |
| |||
2713 | 2731 |
| |
2714 | 2732 |
| |
2715 | 2733 |
| |
2716 |
| - | |
2717 |
| - | |
| 2734 | + | |
| 2735 | + | |
2718 | 2736 |
| |
2719 |
| - | |
2720 |
| - | |
2721 |
| - | |
2722 |
| - | |
2723 |
| - | |
2724 |
| - | |
| 2737 | + | |
| 2738 | + | |
| 2739 | + | |
| 2740 | + | |
2725 | 2741 |
| |
2726 | 2742 |
| |
2727 | 2743 |
| |
| |||
2743 | 2759 |
| |
2744 | 2760 |
| |
2745 | 2761 |
| |
2746 |
| - | |
| 2762 | + | |
2747 | 2763 |
| |
2748 | 2764 |
| |
2749 | 2765 |
| |
| |||
2793 | 2809 |
| |
2794 | 2810 |
| |
2795 | 2811 |
| |
2796 |
| - | |
2797 |
| - | |
2798 |
| - | |
2799 |
| - | |
2800 |
| - | |
2801 |
| - | |
2802 |
| - | |
2803 |
| - | |
2804 |
| - | |
2805 |
| - | |
2806 | 2812 |
| |
2807 |
| - | |
2808 |
| - | |
2809 |
| - | |
2810 |
| - | |
| 2813 | + | |
| 2814 | + | |
2811 | 2815 |
| |
| 2816 | + | |
| 2817 | + | |
2812 | 2818 |
| |
2813 | 2819 |
| |
2814 | 2820 |
| |
|
0 commit comments
Comments
(0)