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

Commita1bc728

Browse files
committed
Add a HINT about the likely reason for 'invalid multibyte character for locale' failure.
1 parent3371b99 commita1bc728

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*
1010
*
1111
* IDENTIFICATION
12-
*$PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.55 2004/08/29 05:06:49 momjian Exp $
12+
*$PostgreSQL: pgsql/src/backend/utils/adt/oracle_compat.c,v 1.56 2004/10/19 15:04:17 tgl Exp $
1313
*
1414
*-------------------------------------------------------------------------
1515
*/
@@ -96,7 +96,8 @@ texttowcs(const text *txt)
9696
pg_verifymbstr(workstr,nbytes, false);
9797
ereport(ERROR,
9898
(errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
99-
errmsg("invalid multibyte character for locale")));
99+
errmsg("invalid multibyte character for locale"),
100+
errhint("The server's LC_CTYPE locale is probably incompatible with the database encoding.")));
100101
}
101102

102103
Assert(ncodes <= (size_t)nbytes);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp