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 72c53ac commit 954108fCopy full SHA for 954108f
src/backend/parser/parse_expr.c
@@ -8,7 +8,7 @@
8
*
9
10
* IDENTIFICATION
11
- * $PostgreSQL: pgsql/src/backend/parser/parse_expr.c,v 1.182 2005/05/24 15:45:34 ishii Exp $
+ * $PostgreSQL: pgsql/src/backend/parser/parse_expr.c,v 1.183 2005/06/04 20:56:13 momjian Exp $
12
13
*-------------------------------------------------------------------------
14
*/
@@ -1556,6 +1556,7 @@ exprTypmod(Node *expr)
1556
{
1557
int32 len = VARSIZE(DatumGetPointer(con->constvalue)) - VARHDRSZ;
1558
1559
+ /* if multi-byte, take len and find # characters */
1560
if (pg_database_encoding_max_length() > 1)
1561
len = pg_mbstrlen_with_len(VARDATA(DatumGetPointer(con->constvalue)), len);
1562
return len + VARHDRSZ;
0 commit comments