[CURRENT] contrib/array_iterator patch

Поиск
Список
Период
Сортировка
От Tatsuo Ishii
Тема [CURRENT] contrib/array_iterator patch
Дата
Msg-id 199903160245.LAA09441@srapc451.sra.co.jp
обсуждение исходный текст
Ответы Re: [HACKERS] [CURRENT] contrib/array_iterator patch  (Bruce Momjian <maillist@candle.pha.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: "Hiroshi Inoue"
Дата:
Сообщение: snprintf() instead of sprintf() ?
Следующее
От: "Hiroshi Inoue"
Дата:
Сообщение: RE: [HACKERS] libpq and SPI