forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit226bc87
committed
Improve reporting of newlocale() failures in CREATE COLLATION.
The standardized errno code for "no such locale" failures is ENOENT, whichwe were just reporting at face value, viz "No such file or directory".Per gripe from Thom Brown, this might confuse users, so add an errdetailmessage to clarify what it means. Also, report newlocale() failures asERRCODE_INVALID_PARAMETER_VALUE rather than usingerrcode_for_file_access(), since newlocale()'s errno values aren'tnecessarily tied directly to file access failures.1 parente5b86c9 commit226bc87
1 file changed
+25
-14
lines changedLines changed: 25 additions & 14 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
707 | 707 |
| |
708 | 708 |
| |
709 | 709 |
| |
710 |
| - | |
711 |
| - | |
| 710 | + | |
712 | 711 |
| |
713 | 712 |
| |
714 | 713 |
| |
| |||
937 | 936 |
| |
938 | 937 |
| |
939 | 938 |
| |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
940 | 960 |
| |
941 | 961 |
| |
942 | 962 |
| |
| |||
995 | 1015 |
| |
996 | 1016 |
| |
997 | 1017 |
| |
998 |
| - | |
999 |
| - | |
1000 |
| - | |
1001 |
| - | |
| 1018 | + | |
1002 | 1019 |
| |
1003 | 1020 |
| |
1004 | 1021 |
| |
| |||
1008 | 1025 |
| |
1009 | 1026 |
| |
1010 | 1027 |
| |
1011 |
| - | |
1012 |
| - | |
1013 |
| - | |
1014 |
| - | |
| 1028 | + | |
1015 | 1029 |
| |
1016 | 1030 |
| |
1017 |
| - | |
1018 |
| - | |
1019 |
| - | |
1020 |
| - | |
| 1031 | + | |
1021 | 1032 |
| |
1022 | 1033 |
| |
1023 | 1034 |
| |
|
0 commit comments
Comments
(0)