diff --git a/src/fdw/trigger.rs b/src/fdw/trigger.rs index ec4b6588..7ac2f334 100644 --- a/src/fdw/trigger.rs +++ b/src/fdw/trigger.rs @@ -17,7 +17,7 @@ use anyhow::{bail, Result}; use pgrx::*; -use std::ffi::{c_char, CStr}; +use std::ffi::CStr; use supabase_wrappers::prelude::{options_to_hashmap, user_mapping_options}; use super::base::register_duckdb_view; @@ -97,7 +97,7 @@ unsafe fn auto_create_schema_impl(fcinfo: pg_sys::FunctionCallInfo) -> Result<() #[cfg(feature = "pg13")] // Fetch the current schema name if the pointer to it is null // This pointer is null in pg13 when the user doesn't specify the schema in the CREATE FOREIGN TABLE statement - let schema_name = match ((*relation).schemaname as *const c_char).is_null() { + let schema_name = match ((*relation).schemaname as *const std::ffi::c_char).is_null() { true => Spi::connect(|client| { client // Casting as TEXT because the default return type is name (Oid(19)) and the conversion to Rust string fails