fix compilation problem for pg12
@@ -44,12 +44,14 @@ mod pg_12 {
#[inline]
pub fn pg_getarg<T: FromDatum<T>>(fcinfo: pg_sys::FunctionCallInfo, num: usize) -> Option<T> {
let datum = get_nullable_datum(fcinfo, num);
+ unsafe {
T::from_datum(
datum.value,
datum.isnull,
crate::get_getarg_type(fcinfo, num),
)
}
+ }
#[inline]
pub fn pg_arg_is_null(fcinfo: pg_sys::FunctionCallInfo, num: usize) -> bool {
