Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc9dd12 commit ba3fb57Copy full SHA for ba3fb57
src/backend/utils/mb/mbutils.c
@@ -4,7 +4,7 @@
4
*
5
* Tatsuo Ishii
6
7
- * $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 $
8
*/
9
#include "postgres.h"
10
@@ -488,7 +488,7 @@ pg_encoding_max_length_sql(PG_FUNCTION_ARGS)
488
int encoding = PG_GETARG_INT32(0);
489
490
if (PG_VALID_ENCODING(encoding))
491
- return pg_wchar_table[encoding].maxmblen;
+ PG_RETURN_INT32(pg_wchar_table[encoding].maxmblen);
492
else
493
PG_RETURN_NULL();
494
}
0 commit comments