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:
parent
6fff9a7475
commit
5dd74c0f21
@ -17,6 +17,7 @@
|
|||||||
#include "access/gist.h"
|
#include "access/gist.h"
|
||||||
#include "access/itup.h"
|
#include "access/itup.h"
|
||||||
#include "access/rtree.h"
|
#include "access/rtree.h"
|
||||||
|
#include "catalog/pg_type.h"
|
||||||
#include "utils/elog.h"
|
#include "utils/elog.h"
|
||||||
#include "utils/palloc.h"
|
#include "utils/palloc.h"
|
||||||
#include "utils/array.h"
|
#include "utils/array.h"
|
||||||
@ -923,6 +924,7 @@ new_intArrayType(int num)
|
|||||||
r->flags &= ~LEAFKEY;
|
r->flags &= ~LEAFKEY;
|
||||||
*((int *) ARR_DIMS(r)) = num;
|
*((int *) ARR_DIMS(r)) = num;
|
||||||
*((int *) ARR_LBOUND(r)) = 1;
|
*((int *) ARR_LBOUND(r)) = 1;
|
||||||
|
ARR_ELEMTYPE(r) = INT4OID;
|
||||||
|
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user