Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitba3fb57

Browse files
committed
Don't use 'return' where you should use 'PG_RETURN_xxx'.
1 parentfc9dd12 commitba3fb57

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/0718:23:14 petere Exp $
7+
* $PostgreSQL: pgsql/src/backend/utils/mb/mbutils.c,v 1.89 2009/07/0719:28:56 tgl Exp $
88
*/
99
#include"postgres.h"
1010

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

490490
if (PG_VALID_ENCODING(encoding))
491-
returnpg_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)

[8]ページ先頭

©2009-2025 Movatter.jp