Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b304b4a

Browse files
committed
Change function name PQclientencoding to PQclientEncoding since
it seems more suitable for the naming convention in libpq.
1 parent ad15560 commit b304b4a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/bin/psql/command.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.16 2000/01/29 16:58:48 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/command.c,v 1.17 2000/02/05 12:27:56 ishii Exp $
77
*/
88
#include <c.h>
99
#include "command.h"
@@ -984,7 +984,7 @@ do_connect(const char *new_dbname, const char *new_user)
984984
}
985985

986986
PQsetNoticeProcessor(pset.db, NoticeProcessor, NULL);
987-
pset.encoding = PQclientencoding(pset.db);
987+
pset.encoding = PQclientEncoding(pset.db);
988988

989989
/* Update variables */
990990
SetVariable(pset.vars, "DBNAME", PQdb(pset.db));

src/bin/psql/startup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright 2000 by PostgreSQL Global Development Group
55
*
6-
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.20 2000/01/29 16:58:49 petere Exp $
6+
* $Header: /cvsroot/pgsql/src/bin/psql/startup.c,v 1.21 2000/02/05 12:27:56 ishii Exp $
77
*/
88
#include <c.h>
99

@@ -173,7 +173,7 @@ main(int argc, char **argv)
173173
* We need to save the encoding because we want to have it
174174
* available even if the database connection goes bad.
175175
*/
176-
pset.encoding = PQclientencoding(pset.db);
176+
pset.encoding = PQclientEncoding(pset.db);
177177

178178
if (options.action == ACT_LIST_DB)
179179
{

0 commit comments

Comments
 (0)