Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5dd74c0

Browse files
committed
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 newarray, new_intArrayType, and that function did not set the new arraystruct attribute elemtype.Joe Conway
1 parent6fff9a7 commit5dd74c0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

‎contrib/intarray/_int.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#include"access/gist.h"
1818
#include"access/itup.h"
1919
#include"access/rtree.h"
20+
#include"catalog/pg_type.h"
2021
#include"utils/elog.h"
2122
#include"utils/palloc.h"
2223
#include"utils/array.h"
@@ -923,6 +924,7 @@ new_intArrayType(int num)
923924
r->flags &= ~LEAFKEY;
924925
*((int*)ARR_DIMS(r))=num;
925926
*((int*)ARR_LBOUND(r))=1;
927+
ARR_ELEMTYPE(r)=INT4OID;
926928

927929
returnr;
928930
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp