diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-02-13 19:46:22 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-02-13 19:46:22 +0000 |
commit | edd366889563fa7c68f2cadb2d64e76197523538 (patch) | |
tree | 5773726bcee4247ab064ca78a743922e2a1454b9 /src/backend/utils/adt/arrayfuncs.c | |
parent | ce88b9b40b7ecd6404c9315f70dbe8b1595a4925 (diff) | |
download | postgresql-edd366889563fa7c68f2cadb2d64e76197523538.tar.gz postgresql-edd366889563fa7c68f2cadb2d64e76197523538.zip |
Atttypmod cleanup.
Diffstat (limited to 'src/backend/utils/adt/arrayfuncs.c')
-rw-r--r-- | src/backend/utils/adt/arrayfuncs.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/backend/utils/adt/arrayfuncs.c b/src/backend/utils/adt/arrayfuncs.c index 6d5db4e7832..bb91516bb5e 100644 --- a/src/backend/utils/adt/arrayfuncs.c +++ b/src/backend/utils/adt/arrayfuncs.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.24 1998/01/15 19:45:01 pgsql Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/adt/arrayfuncs.c,v 1.25 1998/02/13 19:45:53 momjian Exp $ * *------------------------------------------------------------------------- */ @@ -43,11 +43,10 @@ /*-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-*/ static int _ArrayCount(char *str, int dim[], int typdelim); -static char * -_ReadArrayStr(char *arrayStr, int nitems, int ndim, int dim[], +static char *_ReadArrayStr(char *arrayStr, int nitems, int ndim, int dim[], FmgrInfo *inputproc, Oid typelem, char typdelim, int typlen, bool typbyval, char typalign, - int *nbytes); + int *nbytes, int16 typmod); #ifdef LOARRAY static char * @@ -93,7 +92,8 @@ static char *array_seek(char *ptr, int eltsize, int nitems); */ char * array_in(char *string, /* input array in external form */ - Oid element_type) /* type OID of an array element */ + Oid element_type, /* type OID of an array element */ + int16 typmod) { int typlen; bool typbyval, @@ -208,7 +208,7 @@ array_in(char *string, /* input array in external form */ /* array not a large object */ dataPtr = (char *) _ReadArrayStr(p, nitems, ndim, dim, &inputproc, typelem, - typdelim, typlen, typbyval, typalign, + typmod, typdelim, typlen, typbyval, typalign, &nbytes); nbytes += ARR_OVERHEAD(ndim); retval = (ArrayType *) palloc(nbytes); @@ -369,6 +369,7 @@ _ReadArrayStr(char *arrayStr, FmgrInfo *inputproc, /* function used for the * conversion */ Oid typelem, + int16 typmod, char typdelim, int typlen, bool typbyval, @@ -460,7 +461,7 @@ _ReadArrayStr(char *arrayStr, *q = '\0'; if (i >= nitems) elog(ERROR, "array_in: illformed array constant"); - values[i] = (*fmgr_faddr(inputproc)) (p, typelem); + values[i] = (*fmgr_faddr(inputproc)) (p, typelem, typmod); p = ++q; if (!eoArray) |