*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.13 1997/12/16 15:59:09 thomas Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.14 1997/12/23 19:24:43 thomas Exp $
*
*-------------------------------------------------------------------------
*/
* len is the length specified in () plus VARHDRSZ bytes. (XXX dummy is here
* because we pass typelem as the second argument for array_in.)
*/
-char *
+char *
bpcharin(char *s, int dummy, int typlen)
{
char *result,
*r;
- int len = typlen - VARHDRSZ;
+ int len;
int i;
if (s == NULL)
len = strlen(s);
typlen = len + VARHDRSZ;
}
+ else
+ {
+ len = typlen - VARHDRSZ;
+ }
if (len > 4096)
elog(WARN, "bpcharin: length of char() must be less than 4096");
return (result);
}
-char *
+char *
bpcharout(char *s)
{
char *result;
return (result);
}
-char *
+char *
varcharout(char *s)
{
char *result;