File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2507,16 +2507,15 @@ pg_ucol_open(const char *loc_str)
2507
2507
2508
2508
/*
2509
2509
* Must never open default collator, because it depends on the environment
2510
- * and may change at any time.
2510
+ * and may change at any time. Should not happen, but check here to catch
2511
+ * bugs that might be hard to catch otherwise.
2511
2512
*
2512
2513
* NB: the default collator is not the same as the collator for the root
2513
2514
* locale. The root locale may be specified as the empty string, "und", or
2514
2515
* "root". The default collator is opened by passing NULL to ucol_open().
2515
2516
*/
2516
2517
if (loc_str == NULL )
2517
- ereport (ERROR ,
2518
- (errcode (ERRCODE_FEATURE_NOT_SUPPORTED ),
2519
- errmsg ("opening default collator is not supported" )));
2518
+ elog (ERROR , "opening default collator is not supported" );
2520
2519
2521
2520
/*
2522
2521
* In ICU versions 54 and earlier, "und" is not a recognized spelling of
You can’t perform that action at this time.
0 commit comments