From 7f385abdc5ca4313096de6cdc6007377de8c431c Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Mon, 20 Mar 2017 21:40:02 +0900 Subject: [PATCH] Fix a compilation error and remove an ununed varaible. --- info.c | 2 +- multibyte.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/info.c b/info.c index cbb53e5..76bcedd 100644 --- a/info.c +++ b/info.c @@ -2178,7 +2178,7 @@ PGAPI_Columns(HSTMT hstmt, Int4 mod_length, ordinal, typmod, relhasoids; - OID field_type, the_type, greloid, basetype; + OID field_type, greloid, basetype; char not_null[MAX_INFO_STRING], relhasrules[MAX_INFO_STRING], relkind[8]; char *escSchemaName = NULL, *escTableName = NULL, *escColumnName = NULL; diff --git a/multibyte.c b/multibyte.c index 23ae828..f0641a2 100644 --- a/multibyte.c +++ b/multibyte.c @@ -505,7 +505,7 @@ CC_lookup_characterset(ConnectionClass *self) currenc = PQparameterStatus(self->pqconn, "client_encoding"); tencstr = encspec ? encspec : currenc; - mylog(__FUNCTION__ " encoding spec=%s parameter=%s tenc=%s\n", encspec ? encspec : "(null)", currenc, tencstr); + mylog("%s encoding spec=%s parameter=%s tenc=%s\n", __FUNCTION__, encspec ? encspec : "(null)", currenc, tencstr); if (encspec) { if (stricmp(encspec, tencstr)) -- 2.39.5