Skip to content

Commit ba3fb57

Browse files
committed
Don't use 'return' where you should use 'PG_RETURN_xxx'.
1 parent fc9dd12 commit ba3fb57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/mb/mbutils.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* Tatsuo Ishii
66
*
7-
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.88 2009/07/07 18:23:14 petere Exp $
7+
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.89 2009/07/07 19:28:56 tgl Exp $
88
*/
99
#include "postgres.h"
1010

@@ -488,7 +488,7 @@ pg_encoding_max_length_sql(PG_FUNCTION_ARGS)
488488
int encoding = PG_GETARG_INT32(0);
489489

490490
if (PG_VALID_ENCODING(encoding))
491-
return pg_wchar_table[encoding].maxmblen;
491+
PG_RETURN_INT32(pg_wchar_table[encoding].maxmblen);
492492
else
493493
PG_RETURN_NULL();
494494
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy