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

Commit832877e

Browse files
committed
Modify getdatabaseencoding(), pg_encoding_to_char()
pg_char_to_encoding() in multibyte disbaled case so that it does notthrow an error, rather return HARD CODED default value (currently SQL_ASCII).This would solve the "non-mb backend vs. mb-enabled frontend" problem.
1 parentf6a3b87 commit832877e

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

‎src/backend/utils/init/miscinit.c

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.45 2000/04/12 17:16:02 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.46 2000/05/02 08:13:08 ishii Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -102,21 +102,18 @@ SetDatabaseName(const char *name)
102102
constchar*
103103
getdatabaseencoding()
104104
{
105-
elog(ERROR,"MultiByte support must be enabled to use this function");
106-
return ("");
105+
return ("SQL_ASCII");
107106
}
108107

109108
constchar*
110109
pg_encoding_to_char(intencoding)
111110
{
112-
elog(ERROR,"MultiByte support must be enabled to use this function");
113-
return ("");
111+
return ("SQL_ASCII");
114112
}
115113

116114
int
117115
pg_char_to_encoding(constchar*encoding_string)
118116
{
119-
elog(ERROR,"MultiByte support must be enabled to use this function");
120117
return (0);
121118
}
122119

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp