summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2002-09-12 00:15:33 +0000
committerBruce Momjian2002-09-12 00:15:33 +0000
commit6a2fd2a416f410ec4cec8f67ea0ab2f1407235df (patch)
tree58172320eebbbd42d7d7ceb382dad6b1112d6e41
parent2850f820a2deb07fed7a4eb4e03265aa2b76b719 (diff)
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
-rw-r--r--contrib/intarray/_int.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/intarray/_int.c b/contrib/intarray/_int.c
index 09590a2852..f4fc63d1c1 100644
--- a/contrib/intarray/_int.c
+++ b/contrib/intarray/_int.c
@@ -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;
}