[CURRENT] contrib/array_iterator patch

From: Tatsuo Ishii <t-ishii(at)sra(dot)co(dot)jp>
To: pgsql-patches(at)postgreSQL(dot)org
Cc: hackers(at)postgreSQL(dot)org
Subject: [CURRENT] contrib/array_iterator patch
Date: 1999-03-16 02:45:36
Message-ID: 199903160245.LAA09441@srapc451.sra.co.jp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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}

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 1999-03-16 02:56:43 Re: [HACKERS] non existing table error message changed?
Previous Message Hiroshi Inoue 1999-03-16 02:44:05 snprintf() instead of sprintf() ?