mirror of
https://github.com/postgres/postgres.git
synced 2025-06-13 07:41:39 +03:00
Fix for GUC client_encoding variable not being handled
correctly. See following thread for more details. Subject: [HACKERS] client_encoding directive is ignored in postgresql.conf From: Tatsuo Ishii <t-ishii@sra.co.jp> Date: Wed, 29 Jan 2003 22:24:04 +0900 (JST)
This commit is contained in:
@ -8,7 +8,7 @@
|
||||
*
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.223 2003/02/14 01:24:26 tgl Exp $
|
||||
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.224 2003/02/19 14:31:26 ishii Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@ -1744,7 +1744,7 @@ PQsetenvPoll(PGconn *conn)
|
||||
* server for it. We must use begin/commit in
|
||||
* case autocommit is off by default.
|
||||
*/
|
||||
if (!PQsendQuery(conn, "begin; select getdatabaseencoding(); commit"))
|
||||
if (!PQsendQuery(conn, "begin; select pg_client_encoding(); commit"))
|
||||
goto error_return;
|
||||
|
||||
conn->setenv_state = SETENV_STATE_ENCODINGS_WAIT;
|
||||
|
Reference in New Issue
Block a user