Fix a bug about automatic client_encoding setting.

REL7_3_STABLE
Hiroshi Inoue 23 years ago
parent be347dcba6
commit 67d0cb2d77
  1. 1
      src/interfaces/odbc/connection.c
  2. 1
      src/interfaces/odbc/multibyte.c

@ -999,6 +999,7 @@ another_version_retry:
if (res = CC_send_query(self, "set client_encoding to 'UTF8'", NULL, CLEAR_RESULT_ON_ABORT), res)
{
self->client_encoding = strdup("UNICODE");
self->ccsc = pg_CS_code(self->client_encoding);
QR_Destructor(res);
}

@ -401,6 +401,7 @@ CC_lookup_characterset(ConnectionClass *self)
if (res)
{
self->client_encoding = strdup(wenc);
self->ccsc = pg_CS_code(self->client_encoding);
QR_Destructor(res);
free(encstr);
return;

Loading…
Cancel
Save