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

Commitd0dd5c7

Browse files
committed
Fix check_exclusion_constraint() to insert correct collations in ScanKeys.
1 parent87f2ad1 commitd0dd5c7

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

‎src/backend/executor/execUtils.c

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,6 +1158,7 @@ check_exclusion_constraint(Relation heap, Relation index, IndexInfo *indexInfo,
11581158
{
11591159
Oid*constr_procs=indexInfo->ii_ExclusionProcs;
11601160
uint16*constr_strats=indexInfo->ii_ExclusionStrats;
1161+
Oid*index_collations=index->rd_indcollation;
11611162
intindex_natts=index->rd_index->indnatts;
11621163
IndexScanDescindex_scan;
11631164
HeapTupletup;
@@ -1188,11 +1189,14 @@ check_exclusion_constraint(Relation heap, Relation index, IndexInfo *indexInfo,
11881189

11891190
for (i=0;i<index_natts;i++)
11901191
{
1191-
ScanKeyInit(&scankeys[i],
1192-
i+1,
1193-
constr_strats[i],
1194-
constr_procs[i],
1195-
values[i]);
1192+
ScanKeyEntryInitialize(&scankeys[i],
1193+
0,
1194+
i+1,
1195+
constr_strats[i],
1196+
InvalidOid,
1197+
index_collations[i],
1198+
constr_procs[i],
1199+
values[i]);
11961200
}
11971201

11981202
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp