We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent33cac03 commit7877860Copy full SHA for 7877860
contrib/array/array_iterator.c
@@ -28,10 +28,11 @@
28
29
#include"array_iterator.h"
30
31
+staticint32
32
array_iterator(Oidelemtype,Oidproc,intand,ArrayType*array,Datumvalue)
33
{
34
HeapTupletyp_tuple;
-TypeTupleFormtyp_struct;
35
+Form_pg_typetyp_struct;
36
booltypbyval;
37
inttyplen;
38
func_ptrproc_fn;
@@ -43,6 +44,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
43
44
*dim;
45
char*p;
46
FmgrInfofinf;/*Tobias Gabele Jan 18 1999*/
47
+
48
49
/* Sanity checks */
50
if ((array== (ArrayType*)NULL)
@@ -67,7 +69,7 @@ array_iterator(Oid elemtype, Oid proc, int and, ArrayType *array, Datum value)
67
69
elog(ERROR,"array_iterator: cache lookup failed for type %d",elemtype);
68
70
return0;
71
}
-typ_struct= (TypeTupleForm)GETSTRUCT(typ_tuple);
72
+typ_struct= (Form_pg_type)GETSTRUCT(typ_tuple);
73
typlen=typ_struct->typlen;
74
typbyval=typ_struct->typbyval;
75