Commit 84ef6aae authored by Bruce Momjian's avatar Bruce Momjian

Re-install working varchar() with compress size.

parent 5fe090c5
......@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.21 1998/01/08 04:19:16 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.22 1998/01/08 04:58:19 momjian Exp $
*
*-------------------------------------------------------------------------
*/
......@@ -132,11 +132,8 @@ varcharin(char *s, int dummy, int typlen)
if (s == NULL)
return ((char *) NULL);
if (typlen == -1) /* we will remove this soon to make compact storage */
/* change varcharlen at the same time to use VARSIZE */
len = strlen(s) + VARHDRSZ;
/* if (typlen != -1 && len > typlen) */
else
if (typlen != -1 && len > typlen)
len = typlen; /* clip the string at max length */
if (len > 4096)
......
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