1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-20 05:03:10 +03:00

Change function name PQclientencoding to PQclientEncoding since

it seems more suitable for the naming convention in libpq.

New function PQsetClientEncoding added. It makes possible to change
the client encoding on the fly without setting PGCLIENTENCODING.
This commit is contained in:
Tatsuo Ishii
2000-02-05 12:33:22 +00:00
parent b304b4a90e
commit d4e62e5ded
3 changed files with 49 additions and 6 deletions

View File

@ -10,7 +10,7 @@
* didn't really belong there.
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.33 2000/01/29 16:58:51 petere Exp $
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-print.c,v 1.34 2000/02/05 12:33:22 ishii Exp $
*
*-------------------------------------------------------------------------
*/
@ -347,7 +347,7 @@ do_field(const PQprintOpt *po, const PGresult *res,
char ch = '0';
#ifdef MULTIBYTE
for (p = pval; *p; p += PQmblen(p, PQclientencoding(res->conn)))
for (p = pval; *p; p += PQmblen(p, PQclientEncoding(res->conn)))
#else
for (p = pval; *p; p++)
#endif