Skip to content

Commit 22d6ee5

Browse files
author
Alexander Korotkov
committed
Fix comparison function call.
1 parent 4d73380 commit 22d6ee5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

contrib/pg_pathman/init.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,10 +342,9 @@ load_check_constraints(Oid parent_oid, Snapshot snapshot)
342342
{
343343
Datum cur_upper = PATHMAN_GET_DATUM(ranges[i].max, byVal);
344344
Datum next_lower = PATHMAN_GET_DATUM(ranges[i+1].min, byVal);
345-
bool overlap = FunctionCall2(qsort_type_cmp_func, next_lower, cur_upper) < 0;
345+
bool overlap = DatumGetInt32(FunctionCall2(qsort_type_cmp_func, next_lower, cur_upper)) < 0;
346346

347347
if (overlap)
348-
// if (ranges[i].max > ranges[i+1].min)
349348
{
350349
RelationKey key;
351350
key.dbid = MyDatabaseId;

0 commit comments

Comments
 (0)