Skip to content
Snippets Groups Projects
Commit 40015cda authored by Bruce Momjian's avatar Bruce Momjian
Browse files

Fix arg coerect match text type, per Tom.

parent ec62ba93
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.77 2001/11/19 18:21:10 momjian Exp $ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varlena.c,v 1.78 2001/11/19 19:15:07 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -260,7 +260,7 @@ textlen(PG_FUNCTION_ARGS) ...@@ -260,7 +260,7 @@ textlen(PG_FUNCTION_ARGS)
Datum Datum
textoctetlen(PG_FUNCTION_ARGS) textoctetlen(PG_FUNCTION_ARGS)
{ {
text *arg = PG_GETARG_VARCHAR_P(0); text *arg = PG_GETARG_TEXT_P(0);
PG_RETURN_INT32(VARSIZE(arg) - VARHDRSZ); PG_RETURN_INT32(VARSIZE(arg) - VARHDRSZ);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment