mirror of
https://github.com/postgres/postgres.git
synced 2025-07-30 11:03:19 +03:00
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
This commit is contained in:
@ -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>
|
||||
|
Reference in New Issue
Block a user