1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-18 17:42:25 +03:00

atttypmod now -1.

This commit is contained in:
Bruce Momjian
1998-02-07 06:11:56 +00:00
parent ec9d5d71ec
commit 65faaf3046
10 changed files with 243 additions and 241 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.25 1998/02/05 17:22:41 momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.26 1998/02/07 06:11:38 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -60,7 +60,7 @@ bpcharin(char *s, int dummy, int atttypmod)
if (s == NULL)
return ((char *) NULL);
if (atttypmod < 1)
if (atttypmod == -1)
{
/*
@ -133,7 +133,7 @@ varcharin(char *s, int dummy, int atttypmod)
return ((char *) NULL);
len = strlen(s) + VARHDRSZ;
if (atttypmod > 0 && len > atttypmod)
if (atttypmod != -1 && len > atttypmod)
len = atttypmod; /* clip the string at max length */
if (len > 4096)