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

Remove OPENLINK define

This commit is contained in:
Bruce Momjian
1996-11-04 04:53:51 +00:00
parent 0108fddf13
commit 18bbad7696
5 changed files with 6 additions and 37 deletions

View File

@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.3 1996/08/26 20:38:52 scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/adt/varchar.c,v 1.4 1996/11/04 04:53:37 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@ -68,13 +68,8 @@ bpcharin(char *s, int dummy, int typlen)
typlen = len + 4;
}
#ifndef OPENLINK_PATCHES
if (len < 1 || len > 4096)
elog(WARN, "bpcharin: length of char() must be between 1 and 4096");
#else
if (len > 4096)
elog(WARN, "bpcharin: length of char() must be less than 4096");
#endif
result = (char *) palloc(typlen);
*(int32*)result = typlen;
@ -137,13 +132,8 @@ varcharin(char *s, int dummy, int typlen)
typlen = len + 4;
}
#ifndef OPENLINK_PATCHES
if (len < 1 || len > 4096)
elog(WARN, "bpcharin: length of char() must be between 1 and 4096");
#else
if (len > 4096)
elog(WARN, "varcharin: length of char() must be less than 4096");
#endif
result = (char *) palloc(typlen);
*(int32*)result = typlen;