Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9a24289

Browse files
committed
pg_locale.c: change ereport() to elog().
Discussion:https://postgr.es/m/73553013-3926-0f34-0fb8-f37909fe4902@enterprisedb.comReported-by: Peter Eisentraut
1 parente88754a commit9a24289

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

‎src/backend/utils/adt/pg_locale.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2507,16 +2507,15 @@ pg_ucol_open(const char *loc_str)
25072507

25082508
/*
25092509
* 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.
25112512
*
25122513
* NB: the default collator is not the same as the collator for the root
25132514
* locale. The root locale may be specified as the empty string, "und", or
25142515
* "root". The default collator is opened by passing NULL to ucol_open().
25152516
*/
25162517
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");
25202519

25212520
/*
25222521
* In ICU versions 54 and earlier, "und" is not a recognized spelling of

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp