diff options
author | Bruce Momjian <bruce@momjian.us> | 2014-03-24 15:59:38 -0400 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2014-03-24 15:59:38 -0400 |
commit | 5db55c6bbca28b8be4d68d2fa0e22465cfe8e755 (patch) | |
tree | 6aca0d629f94219eb40da989f441f61214fd5038 /doc/src | |
parent | 0b5c0f3bc78d72b753387f84b9188709af3ef8fb (diff) | |
download | postgresql-5db55c6bbca28b8be4d68d2fa0e22465cfe8e755.tar.gz postgresql-5db55c6bbca28b8be4d68d2fa0e22465cfe8e755.zip |
Remove wchar.c Asserts that were stricter than the main code
Assert errors were thrown for functions being passed invalid encodings,
while the main code handled it just fine.
Also document that libpq's PQclientEncoding() returns -1 for an encoding
lookup failure.
Per report from Peter Geoghegan
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/libpq.sgml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/src/sgml/libpq.sgml b/doc/src/sgml/libpq.sgml index 22815bc9ad8..be0d602508d 100644 --- a/doc/src/sgml/libpq.sgml +++ b/doc/src/sgml/libpq.sgml @@ -5377,7 +5377,8 @@ int PQclientEncoding(const PGconn *<replaceable>conn</replaceable>); </synopsis> Note that it returns the encoding ID, not a symbolic string - such as <literal>EUC_JP</literal>. To convert an encoding ID to an encoding name, you + such as <literal>EUC_JP</literal>. If unsuccessful, it returns -1. + To convert an encoding ID to an encoding name, you can use: <synopsis> |