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

Commitfc09fb7

Browse files
committed
Remove sometimes inaccurate error hint about source of wrongly encoded data.
1 parent1c4c741 commitfc09fb7

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

‎src/backend/utils/mb/wchar.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* conversion functions between pg_wchar and multibyte streams.
33
* Tatsuo Ishii
4-
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.73 2009/06/11 14:49:05 momjian Exp $
4+
* $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.74 2010/01/04 20:38:31 adunstan Exp $
55
*
66
*/
77
/* can be used in either frontend or backend */
@@ -1608,10 +1608,7 @@ report_invalid_encoding(int encoding, const char *mbstr, int len)
16081608
(errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
16091609
errmsg("invalid byte sequence for encoding \"%s\": 0x%s",
16101610
pg_enc2name_tbl[encoding].name,
1611-
buf),
1612-
errhint("This error can also happen if the byte sequence does not "
1613-
"match the encoding expected by the server, which is controlled "
1614-
"by \"client_encoding\".")));
1611+
buf)));
16151612
}
16161613

16171614
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp