From: Tom Lane Date: Tue, 7 Jul 2009 19:28:56 +0000 (+0000) Subject: Don't use 'return' where you should use 'PG_RETURN_xxx'. X-Git-Url: http://waps.l3s.uni-hannover.de/gitweb/?a=commitdiff_plain;h=8d5970de84675bb8ff002dc1de0135b6547b3ed2;p=users%2Fsimon%2Fpostgres.git Don't use 'return' where you should use 'PG_RETURN_xxx'. --- diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c index 058493ca37..fa4ec39dc1 100644 --- a/src/backend/utils/mb/mbutils.c +++ b/src/backend/utils/mb/mbutils.c @@ -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(); }