Skip to content

Commit 67d0cb2

Browse files
author
Hiroshi Inoue
committed
Fix a bug about automatic client_encoding setting.
1 parent be347dc commit 67d0cb2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/interfaces/odbc/connection.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,7 @@ CC_connect(ConnectionClass *self, char password_req, char *salt_para)
999999
if (res = CC_send_query(self, "set client_encoding to 'UTF8'", NULL, CLEAR_RESULT_ON_ABORT), res)
10001000
{
10011001
self->client_encoding = strdup("UNICODE");
1002+
self->ccsc = pg_CS_code(self->client_encoding);
10021003
QR_Destructor(res);
10031004

10041005
}

src/interfaces/odbc/multibyte.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ CC_lookup_characterset(ConnectionClass *self)
401401
if (res)
402402
{
403403
self->client_encoding = strdup(wenc);
404+
self->ccsc = pg_CS_code(self->client_encoding);
404405
QR_Destructor(res);
405406
free(encstr);
406407
return;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy