aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2010-01-04 20:38:31 +0000
committerAndrew Dunstan <andrew@dunslane.net>2010-01-04 20:38:31 +0000
commitfc09fb7bcf0ec3320331744c9523b71349d55fb6 (patch)
tree1616c342f7324348c483bba4f2576cefd504a7ea
parent1c4c741ea93018cc30719e2e24206996018301d4 (diff)
downloadpostgresql-fc09fb7bcf0ec3320331744c9523b71349d55fb6.tar.gz
postgresql-fc09fb7bcf0ec3320331744c9523b71349d55fb6.zip
Remove sometimes inaccurate error hint about source of wrongly encoded data.
-rw-r--r--src/backend/utils/mb/wchar.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/backend/utils/mb/wchar.c b/src/backend/utils/mb/wchar.c
index 9bff635b883..e164866a77c 100644
--- a/src/backend/utils/mb/wchar.c
+++ b/src/backend/utils/mb/wchar.c
@@ -1,7 +1,7 @@
/*
* conversion functions between pg_wchar and multibyte streams.
* Tatsuo Ishii
- * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.73 2009/06/11 14:49:05 momjian Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/wchar.c,v 1.74 2010/01/04 20:38:31 adunstan Exp $
*
*/
/* can be used in either frontend or backend */
@@ -1608,10 +1608,7 @@ report_invalid_encoding(int encoding, const char *mbstr, int len)
(errcode(ERRCODE_CHARACTER_NOT_IN_REPERTOIRE),
errmsg("invalid byte sequence for encoding \"%s\": 0x%s",
pg_enc2name_tbl[encoding].name,
- buf),
- errhint("This error can also happen if the byte sequence does not "
- "match the encoding expected by the server, which is controlled "
- "by \"client_encoding\".")));
+ buf)));
}
/*