Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67d0cb2

Browse files
author
Hiroshi Inoue
committed
Fix a bug about automatic client_encoding setting.
1 parentbe347dc commit67d0cb2

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)

[8]ページ先頭

©2009-2025 Movatter.jp