Skip to content

Commit b78953b

Browse files
committed
Fix datum conversion typo
Fixes a DatumGetInt64 that should really be a Int64GetDatum. Caused segfaults on 32-bit (e.g., ARM) platforms.
1 parent c7283ef commit b78953b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hypertable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -861,7 +861,7 @@ hypertable_create(PG_FUNCTION_ARGS)
861861
DimensionInfo time_dim_info = {
862862
.table_relid = table_relid,
863863
.colname = PG_ARGISNULL(1) ? NULL : PG_GETARG_NAME(1),
864-
.interval_datum = PG_ARGISNULL(6) ? DatumGetInt64(-1) : PG_GETARG_DATUM(6),
864+
.interval_datum = PG_ARGISNULL(6) ? Int64GetDatum(-1) : PG_GETARG_DATUM(6),
865865
.interval_type = PG_ARGISNULL(6) ? InvalidOid : get_fn_expr_argtype(fcinfo->flinfo, 6),
866866
};
867867
DimensionInfo space_dim_info = {

0 commit comments

Comments
 (0)