Skip to content

Commit

Permalink
fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
pert5432 committed Oct 8, 2024
1 parent 0900565 commit 0bdfc49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fdw/trigger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0bdfc49

Please sign in to comment.