git.postgresql.org Git - postgresql.git/commitdiff

git projects / postgresql.git / commitdiff
? search:
summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: fc9dd12)
Don't use 'return' where you should use 'PG_RETURN_xxx'.
Tue, 7 Jul 2009 19:28:56 +0000 (19:28 +0000)
Tue, 7 Jul 2009 19:28:56 +0000 (19:28 +0000)

diff --git a/src/backend/utils/mb/mbutils.c b/src/backend/utils/mb/mbutils.c
index fe8941b3c02d809d8c665d15065363dd2cdf9c8f..cd3ebb219e25550b01ea8a33f5443c250ac8522f 100644 (file)
--- 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();
}
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /