The attached small patch fixes the cause of the regression test failure

for contrib/intarray.

The cause was that the library uses its own function to construct a new
array, new_intArrayType, and that function did not set the new array
struct attribute elemtype.

Joe Conway
This commit is contained in:
Bruce Momjian 2002-09-12 00:15:33 +00:00
parent 6fff9a7475
commit 5dd74c0f21
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@
#include "access/gist.h"
#include "access/itup.h"
#include "access/rtree.h"
#include "catalog/pg_type.h"
#include "utils/elog.h"
#include "utils/palloc.h"
#include "utils/array.h"
@ -923,6 +924,7 @@ new_intArrayType(int num)
r->flags &= ~LEAFKEY;
*((int *) ARR_DIMS(r)) = num;
*((int *) ARR_LBOUND(r)) = 1;
ARR_ELEMTYPE(r) = INT4OID;
return r;
}