Skip to content

Commit 40015cd

Browse files
committed
Fix arg coerect match text type, per Tom.
1 parent ec62ba9 commit 40015cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/backend/utils/adt/varlena.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.77 2001/11/19 18:21:10 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.78 2001/11/19 19:15:07 momjian Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -260,7 +260,7 @@ textlen(PG_FUNCTION_ARGS)
260260
Datum
261261
textoctetlen(PG_FUNCTION_ARGS)
262262
{
263-
text *arg = PG_GETARG_VARCHAR_P(0);
263+
text *arg = PG_GETARG_TEXT_P(0);
264264

265265
PG_RETURN_INT32(VARSIZE(arg) - VARHDRSZ);
266266
}

0 commit comments

Comments
 (0)