diff options
author | Bruce Momjian | 2002-09-12 00:15:33 +0000 |
---|---|---|
committer | Bruce Momjian | 2002-09-12 00:15:33 +0000 |
commit | 5dd74c0f213e07d378066f0284f8807959b069e1 (patch) | |
tree | b935ef04eb3bedd3400f3f903b4add46ba36a690 | |
parent | 6fff9a7475f6ff26145e58dfeb91f0721e564b80 (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.c | 2 |
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; } |