diff options
author | Bruce Momjian <bruce@momjian.us> | 1999-03-16 03:09:51 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1999-03-16 03:09:51 +0000 |
commit | 787786085f42467fba1568e8524e33738b9d641f (patch) | |
tree | c9ff79f7e54fe11189b156e95c4a125941aa9933 /contrib/array/array_iterator.c | |
parent | 33cac03c3ebb19e951ebaaebf2fc28f1e70ac7a0 (diff) | |
download | postgresql-787786085f42467fba1568e8524e33738b9d641f.tar.gz postgresql-787786085f42467fba1568e8524e33738b9d641f.zip |
contrib/array_iterator/array_iterator.c won't compile.
Included patches should fix the problem.
--
Tatsuo Ishii
Diffstat (limited to 'contrib/array/array_iterator.c')
-rw-r--r-- | contrib/array/array_iterator.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/array/array_iterator.c b/contrib/array/array_iterator.c index fcf243e1003..5c4a3371a4f 100644 --- a/contrib/array/array_iterator.c +++ b/contrib/array/array_iterator.c @@ -28,10 +28,11 @@ #include "array_iterator.h" +static int32 array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value) { HeapTuple typ_tuple; - TypeTupleForm typ_struct; + Form_pg_type typ_struct; bool typbyval; int typlen; func_ptr proc_fn; @@ -43,6 +44,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value) *dim; char *p; FmgrInfo finf; /*Tobias Gabele Jan 18 1999*/ + /* Sanity checks */ if ((array == (ArrayType *) NULL) @@ -67,7 +69,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value) elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype); return 0; } - typ_struct = (TypeTupleForm) GETSTRUCT(typ_tuple); + typ_struct = (Form_pg_type) GETSTRUCT(typ_tuple); typlen = typ_struct->typlen; typbyval = typ_struct->typbyval; |