Skip to content

Commit

Permalink
Fixes for pgrx update
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Jun 2, 2023
1 parent 2db43e4 commit f83494e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion extension/src/raw.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ impl From<i64> for Interval {
// IntervalPGetDatum(result)));
// So if we want the same behavior, we need to call interval_justify_hours too:
let function_args = vec![Some(pg_sys::Datum::from(interval))];
unsafe { pgrx::direct_function_call(pg_sys::interval_justify_hours, function_args) }
unsafe { pgrx::direct_function_call(pg_sys::interval_justify_hours, &function_args) }
.expect("interval_justify_hours does not return None")
}
}
Expand Down
1 change: 0 additions & 1 deletion extension/src/serialization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ pub extern "C" fn _ts_toolkit_decode_timestamptz(text: &str) -> i64 {
str.as_ptr(),
b"timestamptz\0".as_ptr().cast::<c_char>(),
);
return 0;
}

match dtype as u32 {
Expand Down

0 comments on commit f83494e

Please sign in to comment.