aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-07-07 19:28:56 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-07-07 19:28:56 +0000
commitba3fb57d8171e7d0d0e27942f6ce8ae364c8d87a (patch)
tree63a4c09b2839f3b963666d93c78e2054b8406f4a /src
parentfc9dd12da061680d4b3a884080fc7d43318f7993 (diff)
downloadpostgresql-ba3fb57d8171e7d0d0e27942f6ce8ae364c8d87a.tar.gz
postgresql-ba3fb57d8171e7d0d0e27942f6ce8ae364c8d87a.zip
Don't use 'return' where you should use 'PG_RETURN_xxx'.
Diffstat (limited to 'src')
-rw-r--r--src/backend/utils/mb/mbutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c
index fe8941b3c02..cd3ebb219e2 100644
--- a/src/backend/utils/mb/mbutils.c
+++ b/src/backend/utils/mb/mbutils.c
@@ -4,7 +4,7 @@
*
* Tatsuo Ishii
*
- * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.88 2009/07/07 18:23:14 petere Exp $
+ * $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.89 2009/07/07 19:28:56 tgl Exp $
*/
#include "postgres.h"
@@ -488,7 +488,7 @@ pg_encoding_max_length_sql(PG_FUNCTION_ARGS)
int encoding = PG_GETARG_INT32(0);
if (PG_VALID_ENCODING(encoding))
- return pg_wchar_table[encoding].maxmblen;
+ PG_RETURN_INT32(pg_wchar_table[encoding].maxmblen);
else
PG_RETURN_NULL();
}