Commit 1c9fcfb6 authored by Bruce Momjian's avatar Bruce Momjian

Fix for varchar I missed.

parent 679d39b9
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.17 1998/01/07 18:46:52 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.18 1998/01/07 22:08:23 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -333,7 +333,7 @@ varcharlen(char *arg)
if (!PointerIsValid(arg))
elog(ERROR, "Bad (null) varchar() external representation", NULL);
return VARSIZE(arg);
return VARSIZE(arg) - VARHDRSZ;
}
bool
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment