diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-13 07:35:40 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2000-06-13 07:35:40 +0000 |
| commit | f2d120532207b8873a5e74e7350dd2904f377289 (patch) | |
| tree | 992c89e023c4b29b42bf4fd6563de91f8d6ec8ca /src/backend/utils/mb/mbutils.c | |
| parent | 8f057d971d663fff9bbb2ae7d053bf71cf09b4a2 (diff) | |
| download | postgresql-f2d120532207b8873a5e74e7350dd2904f377289.tar.gz | |
Another batch of fmgr updates. I think I have gotten all old-style
functions that take pass-by-value datatypes. Should be ready for
port testing ...
Diffstat (limited to 'src/backend/utils/mb/mbutils.c')
| -rw-r--r-- | src/backend/utils/mb/mbutils.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index ba22ec347f..2e21f4f37a 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -3,12 +3,14 @@ * client encoding and server internal encoding. * (currently mule internal code (mic) is used) * Tatsuo Ishii - * $Id: mbutils.c,v 1.9 1999/09/11 22:28:00 tgl Exp $ */ + * $Id: mbutils.c,v 1.10 2000/06/13 07:35:12 tgl Exp $ */ #include "postgres.h" + #include "miscadmin.h" #include "mb/pg_wchar.h" +#include "utils/builtins.h" static int client_encoding = -1; static void (*client_to_mic) ();/* something to MIC */ @@ -266,10 +268,10 @@ GetDatabaseEncoding() } /* for builtin-function */ -const char * -getdatabaseencoding() +Datum +getdatabaseencoding(PG_FUNCTION_ARGS) { - return (pg_encoding_to_char(DatabaseEncoding)); + PG_RETURN_NAME(pg_encoding_to_char(DatabaseEncoding)); } /* set and get template1 database encoding */ |
