[CURRENT] contrib/array_iterator patch - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject [CURRENT] contrib/array_iterator patch
Date
Msg-id 199903160245.LAA09441@srapc451.sra.co.jp
Whole thread Raw
Responses Re: [HACKERS] [CURRENT] contrib/array_iterator patch
List pgsql-hackers
contrib/array_iterator/array_iterator.c won't compile.
Included patches should fix the problem.
--
Tatsuo Ishii

*** pgsql/contrib/array/array_iterator.c~    Fri Jan 22 07:40:16 1999
--- pgsql/contrib/array/array_iterator.c    Tue Mar 16 11:31:40 1999
***************
*** 28,37 ****  #include "array_iterator.h"  array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum
value){     HeapTuple    typ_tuple;
 
!     TypeTupleForm typ_struct;     bool        typbyval;     int            typlen;     func_ptr    proc_fn;
--- 28,38 ----  #include "array_iterator.h" 
+ static int32 array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value) {     HeapTuple
typ_tuple;
!     Form_pg_type typ_struct;     bool        typbyval;     int            typlen;     func_ptr    proc_fn;
***************
*** 43,48 ****
--- 44,50 ----                *dim;     char       *p;     FmgrInfo finf;    /*Tobias Gabele Jan 18 1999*/
+           /* Sanity checks */     if ((array == (ArrayType *) NULL)
***************
*** 67,73 ****         elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);         return 0;
}
!     typ_struct = (TypeTupleForm) GETSTRUCT(typ_tuple);     typlen = typ_struct->typlen;     typbyval =
typ_struct->typbyval;
 
--- 69,75 ----         elog(ERROR, "array_iterator: cache lookup failed for type %d", elemtype);         return 0;
}
!     typ_struct = (Form_pg_type) GETSTRUCT(typ_tuple);     typlen = typ_struct->typlen;     typbyval =
typ_struct->typbyval;
 
[srapc451.sra.co.jp]t-ishii{123} 


pgsql-hackers by date:

Previous
From: "Hiroshi Inoue"
Date:
Subject: snprintf() instead of sprintf() ?
Next
From: "Hiroshi Inoue"
Date:
Subject: RE: [HACKERS] libpq and SPI