File tree Expand file tree Collapse file tree 3 files changed +10
-7
lines changed
Expand file tree Collapse file tree 3 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 88 *
99 *
1010 * IDENTIFICATION
11- * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.64 2001/03/22 04:00:00 momjian Exp $
11+ * $Header: /cvsroot/pgsql/src/backend/utils/init/miscinit.c,v 1.65 2001/04/16 02:42:01 tgl Exp $
1212 *
1313 *-------------------------------------------------------------------------
1414 */
@@ -168,13 +168,13 @@ SetDataDir(const char *dir)
168168Datum
169169getdatabaseencoding (PG_FUNCTION_ARGS )
170170{
171- PG_RETURN_NAME ( "SQL_ASCII" );
171+ return DirectFunctionCall1 ( namein , CStringGetDatum ( "SQL_ASCII" ) );
172172}
173173
174174Datum
175175PG_encoding_to_char (PG_FUNCTION_ARGS )
176176{
177- PG_RETURN_NAME ( "SQL_ASCII" );
177+ return DirectFunctionCall1 ( namein , CStringGetDatum ( "SQL_ASCII" ) );
178178}
179179
180180Datum
Original file line number Diff line number Diff line change 22 * This file contains some public functions
33 * usable for both the backend and the frontend.
44 * Tatsuo Ishii
5- * $Id: common.c,v 1.12 2001/02/11 01:59:22 ishii Exp $
5+ * $Id: common.c,v 1.13 2001/04/16 02:42:01 tgl Exp $
66 */
77#include "postgres.h"
88
9191PG_encoding_to_char (PG_FUNCTION_ARGS )
9292{
9393 int32 encoding = PG_GETARG_INT32 (0 );
94+ const char * encoding_name = pg_encoding_to_char (encoding );
9495
95- PG_RETURN_NAME ( pg_encoding_to_char ( encoding ));
96+ return DirectFunctionCall1 ( namein , CStringGetDatum ( encoding_name ));
9697}
9798
9899#endif
Original file line number Diff line number Diff line change 33 * client encoding and server internal encoding.
44 * (currently mule internal code (mic) is used)
55 * Tatsuo Ishii
6- * $Id: mbutils.c,v 1.16 2001/03/08 00:24:34 tgl Exp $
6+ * $Id: mbutils.c,v 1.17 2001/04/16 02:42:01 tgl Exp $
77 */
88#include "postgres.h"
99
@@ -287,5 +287,7 @@ GetDatabaseEncoding()
287287Datum
288288getdatabaseencoding (PG_FUNCTION_ARGS )
289289{
290- PG_RETURN_NAME (pg_encoding_to_char (DatabaseEncoding ));
290+ const char * encoding_name = pg_encoding_to_char (DatabaseEncoding );
291+
292+ return DirectFunctionCall1 (namein , CStringGetDatum (encoding_name ));
291293}
You can’t perform that action at this time.
0 commit comments