Re-install working varchar() with compress size.

This commit is contained in:
Bruce Momjian 1998-01-08 04:58:19 +00:00
parent 5fe090c559
commit 84ef6aae18
1 changed files with 3 additions and 6 deletions

View File

@ -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
len = strlen(s) + VARHDRSZ;
if (typlen != -1 && len > typlen)
len = typlen; /* clip the string at max length */
if (len > 4096)