Skip to content

Commit d71fbcd

Browse files
committedDec 5, 2016
use DatumGetInt64 instead of DatumGetUInt64 (9.5 compatibility)
1 parent 2991144 commit d71fbcd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎src/partition_creation.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ choose_range_partition_name(Oid parent_relid, Oid parent_nsp)
659659

660660
return psprintf("%s_" UINT64_FORMAT,
661661
get_rel_name(parent_relid),
662-
DatumGetUInt64(part_num));
662+
(uint64) DatumGetInt64(part_num)); /* can't use UInt64 on 9.5 */
663663
}
664664

665665
/* Choose a good name for a HASH partition */

0 commit comments

Comments
 (0)
Please sign in to comment.